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.

buddy_list: Ensure users are visible when hide_headers is true.

evykassirerba215e3e80b0
diff --git a/web/src/buddy_list.ts b/web/src/buddy_list.ts
index 206c33f7b28..edb9c12d1d7 100644
--- a/web/src/buddy_list.ts
+++ b/web/src/buddy_list.ts
@@ -248,7 +248,15 @@ export class BuddyList extends BuddyListConf {
}
this.render_section_headers();
- if (!this.render_data.hide_headers) {
+ if (this.render_data.hide_headers) {
+ // Ensure the section isn't collapsed, because we're hiding its header
+ // so there's no way to collapse or uncollapse the list in this view.
+ $("#buddy-list-other-users-container").toggleClass("collapsed", false);
+ } else {
+ $("#buddy-list-other-users-container").toggleClass(
+ "collapsed",
+ this.other_users_is_collapsed,
+ );
this.update_empty_list_placeholders();
}
}