Skip to content

Commit

Permalink
fix: #8059, properly mark topic unread when using mark unread for all
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Nov 23, 2019
1 parent 4fea12c commit a688aaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/socket.io/topics/unread.js
Expand Up @@ -67,6 +67,7 @@ module.exports = function (SocketTopics) {
await topics.markAsUnreadForAll(tid);
await topics.updateRecent(tid, now);
await db.sortedSetAdd('cid:' + topicData.cid + ':tids:lastposttime', now, tid);
await topics.setTopicField(tid, 'lastposttime', now);
}));
topics.pushUnreadCount(socket.uid);
};
Expand Down

0 comments on commit a688aaa

Please sign in to comment.