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: Make condensed views aware of hide-count preference.

Karl Stolley070f4977856c
diff --git a/web/src/sidebar_ui.ts b/web/src/sidebar_ui.ts
index fdf20c042ac..113c84eca40 100644
--- a/web/src/sidebar_ui.ts
+++ b/web/src/sidebar_ui.ts
@@ -133,7 +133,10 @@ export function update_invite_user_option(): void {
export function update_unread_counts_visibility(): void {
const hidden = !user_settings.web_left_sidebar_unreads_count_summary;
- $(".top_left_row").toggleClass("hide-unread-messages-count", hidden);
+ $(".top_left_row, #left-sidebar-navigation-list-condensed").toggleClass(
+ "hide-unread-messages-count",
+ hidden,
+ );
// Note: Channel folder count visibilities are handled in
// `update_section_unread_count`, since they depend on unread counts.
}