update all socket methods, works on single node

This commit is contained in:
barisusakli
2014-11-28 19:06:07 -05:00
parent 13609edf82
commit f7c70e2a7a
2 changed files with 43 additions and 63 deletions

View File

@@ -314,7 +314,6 @@ var db = require('./database'),
};
function sendNotifications(fromuid, touid, messageObj, callback) {
// todo #1798 -- this should check if the user is in room `chat_{uidA}_{uidB}` instead, see `Sockets.uidInRoom(uid, room);`
if (!websockets.isUserOnline(touid)) {
notifications.create({
bodyShort: '[[notifications:new_message_from, ' + messageObj.fromUser.username + ']]',