mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
recent_topics: Update unread count of topics inplace.
This commit is contained in:
@@ -152,6 +152,11 @@ exports.update_topic_is_muted = function (stream_id, topic, is_muted) {
|
||||
return true;
|
||||
};
|
||||
|
||||
exports.update_topic_unread_count = function (message) {
|
||||
const topic_key = message.stream_id + ":" + message.topic;
|
||||
exports.inplace_rerender(topic_key);
|
||||
};
|
||||
|
||||
exports.complete_rerender = function () {
|
||||
// NOTE: This function is grows expensive with
|
||||
// number of topics. Only call when necessary.
|
||||
|
||||
Reference in New Issue
Block a user