This commit is contained in:
Julian Lam
2014-10-30 17:50:07 -04:00
parent 28f87cc776
commit adfb89a2ad
8 changed files with 95 additions and 34 deletions

View File

@@ -201,10 +201,15 @@ define('forum/chats', ['string', 'sounds', 'forum/infinitescroll'], function(S,
socket.emit('modules.chats.send', {
touid:toUid,
message:msg
}, function(err) {
if (err) {
return app.alertError(err.message);
}
inputEl.val('');
sounds.play('chat-outgoing');
Chats.notifyTyping(toUid, false);
});
inputEl.val('');
sounds.play('chat-outgoing');
Chats.notifyTyping(toUid, false);
}
};