Skip to content

Commit

Permalink
moved a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqua-Ye committed Mar 3, 2012
1 parent 7e21503 commit 633f7ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.opa
Expand Up @@ -170,11 +170,6 @@ client @async function media_update(stats, list(media) medias) {
})
}
client @async function send_message(broadcast, _) {
broadcast(Dom.get_value(#entry))
Dom.clear_value(#entry)
}
server function file_uploaded(user)(name, mimetype, key) {
media = {
source: {user:user.name},
Expand Down Expand Up @@ -241,6 +236,11 @@ server function init_client(user, client_channel, _) {
OpaShare.init(file_uploaded(user))
}
client @async function send_message(broadcast, _) {
broadcast(Dom.get_value(#entry))
Dom.clear_value(#entry)
}
exposed @async function enter_chat(user_name, client_channel) {
user = {
id: Random.int(max_int),
Expand Down

0 comments on commit 633f7ed

Please sign in to comment.