updateUnreadCount

This commit is contained in:
barisusakli
2014-09-16 11:06:10 -04:00
parent 22577917da
commit 32257c9b2f
5 changed files with 30 additions and 36 deletions

View File

@@ -51,14 +51,13 @@ SocketPosts.reply = function(socket, data, callback) {
return;
}
for(var i=0; i<uids.length; ++i) {
if (uids[i] !== socket.uid) {
if (parseInt(uids[i], 10) !== socket.uid) {
websockets.in('uid_' + uids[i]).emit('event:new_post', result);
}
}
});
websockets.emitTopicPostStats();
topics.pushUnreadCount();
});
};