if user is in the topic when a new post comes in mark the topic read

This commit is contained in:
Baris Soner Usakli
2014-01-21 10:06:13 -05:00
parent 9400e5bcc9
commit 039f02456d
5 changed files with 56 additions and 18 deletions

View File

@@ -141,9 +141,7 @@ SocketUser.getOnlineAnonCount = function(socket, data, callback) {
};
SocketUser.getUnreadCount = function(socket, data, callback) {
topics.getUnreadTids(socket.uid, 0, 19, function(err, tids) {
callback(err, tids?tids.length:0);
});
topics.getUnreadTids(socket.uid, 0, 19, callback);
};
SocketUser.getActiveUsers = function(socket, data, callback) {