hotfixing notif spam on chat

This commit is contained in:
Julian Lam
2013-06-26 16:07:36 -04:00
parent faf70d85d8
commit 5f5b30eae8

View File

@@ -300,7 +300,7 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
userSockets[touid][x].emit('chatMessage', {fromuid:uid, username:username, message:finalMessage});
}
notifications.create(finalMessage, 5, '#', 'notification_'+Date.now(), function(nid) {
notifications.create(finalMessage, 5, '#', 'notification_'+uid+'_'+touid, function(nid) {
notifications.push(nid, [touid], function(success) {
});