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.

sidebar_ui: Fix error on searching when DM header is hidden.

Aman Agrawal551026ae28e3
diff --git a/web/src/sidebar_ui.ts b/web/src/sidebar_ui.ts
index 1d70a8434bd..da63bca017b 100644
--- a/web/src/sidebar_ui.ts
+++ b/web/src/sidebar_ui.ts
@@ -475,7 +475,7 @@ function get_header_rows_selectors(): string {
// Views header.
"#left-sidebar-navigation-area:not(.hidden-by-filters) #views-label-container, " +
// DM Headers
- "#direct-messages-section-header, " +
+ "#left_sidebar_scroll_container:not(.direct-messages-hidden-by-filters) #direct-messages-section-header, " +
// All channel headers.
".stream-list-section-container:not(.no-display) .stream-list-subsection-header"
);