From 20fc71dd8710a6f60f7c926548f886c0a876ab04 Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Wed, 29 Nov 2023 15:33:50 -0500 Subject: [PATCH] left_sidebar: Update streams header with unread masking. --- web/src/stream_list.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/stream_list.js b/web/src/stream_list.js index 88b9c6f7fb..a785aafccc 100644 --- a/web/src/stream_list.js +++ b/web/src/stream_list.js @@ -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");