mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 06:28:23 +00:00
Show the total unread count in notifications, even if narrowed.
Previously we'd display the unread count for the current narrow. (imported from commit 4939fc5cf0efcf9662b2b359f2247f915a334ac8)
This commit is contained in:
@@ -338,7 +338,7 @@ function resizehandler(e) {
|
|||||||
// screen resolution changes, so we might want to wait for a more
|
// screen resolution changes, so we might want to wait for a more
|
||||||
// intentional action to say that the user has "read" a message.
|
// intentional action to say that the user has "read" a message.
|
||||||
var res = unread.get_counts();
|
var res = unread.get_counts();
|
||||||
notifications_bar.update(res.unread_in_current_view);
|
notifications_bar.update(res.home_unread_messages);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|||||||
@@ -265,9 +265,9 @@ function update_unread_counts() {
|
|||||||
// This updates some DOM elements directly, so try to
|
// This updates some DOM elements directly, so try to
|
||||||
// avoid excessive calls to this.
|
// avoid excessive calls to this.
|
||||||
stream_list.update_dom_with_unread_counts(res);
|
stream_list.update_dom_with_unread_counts(res);
|
||||||
notifications.update_title_count(res.unread_in_current_view);
|
notifications.update_title_count(res.home_unread_messages);
|
||||||
notifications.update_pm_count(res.private_message_count);
|
notifications.update_pm_count(res.private_message_count);
|
||||||
notifications_bar.update(res.unread_in_current_view);
|
notifications_bar.update(res.home_unread_messages);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mark_all_as_read(cont) {
|
function mark_all_as_read(cont) {
|
||||||
|
|||||||
Reference in New Issue
Block a user