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: Fix section divider not shown when all streams are muted.

Hemant Umrea451fe861eba
diff --git a/static/js/stream_list.js b/static/js/stream_list.js
index ed7433e356a..1e1dc01258a 100644
--- a/static/js/stream_list.js
+++ b/static/js/stream_list.js
@@ -142,9 +142,12 @@ export function build_stream_list(force_rerender) {
topic_list.clear();
$parent.empty();
- const any_pinned_streams = stream_groups.pinned_streams.length > 0;
- const any_normal_streams = stream_groups.normal_streams.length > 0;
+ const any_pinned_streams =
+ stream_groups.pinned_streams.length > 0 || stream_groups.muted_pinned_streams.length > 0;
+ const any_normal_streams =
+ stream_groups.normal_streams.length > 0 || stream_groups.muted_active_streams.length > 0;
const any_dormant_streams = stream_groups.dormant_streams.length > 0;
+
const need_section_subheaders =
(any_pinned_streams ? 1 : 0) +
(any_normal_streams ? 1 : 0) +