revamped handling of unread messages, so that a socket call is made to all socket clients whenever a new unread message is available. Prior behaviour had the unread count updated via ajax call on ajaxify (which was clumsy at best and didn't update automagically)

This commit is contained in:
Julian Lam
2013-12-05 13:59:16 -05:00
parent 43b012b32e
commit d9ee9bf5e3
9 changed files with 88 additions and 25 deletions

View File

@@ -149,6 +149,9 @@ var RDB = require('./redis'),
next();
});
},
function(next) {
topics.pushUnreadCount(null, next);
},
function(next) {
Posts.getCidByPid(postData.pid, function(err, cid) {
if(err) {