dont make a copy of chat message

This commit is contained in:
barisusakli
2014-09-02 15:50:02 -04:00
parent c56a7bf475
commit e495db3065
3 changed files with 6 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ define('chat', ['taskbar', 'string', 'sounds', 'forum/chats'], function(taskbar,
if (isSelf) {
username = data.message.toUser.username;
}
newMessage = data.message.self === 0;
newMessage = data.self === 0;
if (module.modalExists(data.withUid)) {
var modal = module.getModal(data.withUid);
module.appendChatMessage(modal, data.message);