mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
refactoring: Let activity.js manage its own unread counts.
This change breaks a needless dependency of activity.js on stream_list.js.
This commit is contained in:
@@ -186,6 +186,7 @@ exports.update_unread_counts = function () {
|
||||
// Side effects from here down:
|
||||
// This updates some DOM elements directly, so try to
|
||||
// avoid excessive calls to this.
|
||||
activity.update_dom_with_unread_counts(res);
|
||||
stream_list.update_dom_with_unread_counts(res);
|
||||
notifications.update_title_count(res.home_unread_messages);
|
||||
notifications.update_pm_count(res.private_message_count);
|
||||
|
||||
Reference in New Issue
Block a user