left_sidebar: Update streams header with unread masking.

This commit is contained in:
Karl Stolley 2023-11-29 15:33:50 -05:00 committed by Tim Abbott
parent 3c5ea3895f
commit 20fc71dd87
1 changed files with 6 additions and 0 deletions

View File

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