mirror of https://github.com/zulip/zulip.git
left_sidebar: Update streams header with unread masking.
This commit is contained in:
parent
3c5ea3895f
commit
20fc71dd87
|
@ -594,6 +594,12 @@ export function update_dom_with_unread_counts(counts) {
|
|||
}
|
||||
|
||||
export function update_dom_unread_counts_visibility() {
|
||||
const $streams_header = $("#streams_header");
|
||||
if (settings_data.should_mask_unread_count()) {
|
||||
$streams_header.addClass("hide_unread_counts");
|
||||
} else {
|
||||
$streams_header.removeClass("hide_unread_counts");
|
||||
}
|
||||
for (const stream of stream_sidebar.rows.values()) {
|
||||
const $subscription_block = stream.get_li().find(".subscription_block");
|
||||
|
||||
|
|
Loading…
Reference in New Issue