fix: #8059, properly mark topic unread when using mark unread for all

This commit is contained in:
Barış Soner Uşaklı
2019-11-23 08:52:18 -05:00
parent 4fea12c83e
commit a688aaae51

View File

@@ -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);
};