This commit is contained in:
barisusakli
2014-04-14 18:04:12 -04:00
parent 3c711d72fb
commit d832a6f805
3 changed files with 14 additions and 7 deletions

View File

@@ -174,7 +174,7 @@ SocketModules.chats.send = function(socket, data, callback) {
return callback(err);
}
sendChatNotification(socket.uid, touid, message.user.username);
sendChatNotification(socket.uid, touid, message.fromUser.username);
server.getUserSockets(touid).forEach(function(s) {
s.emit('event:chats.receive', {