Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

left_sidebar: Update streams header with unread masking.

Karl Stolley20fc71dd8710
diff --git a/web/src/stream_list.js b/web/src/stream_list.js
index 88b9c6f7fba..a785aafccc5 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");