mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
buddy_list: Make sure we always open Others section during search.
This commit is contained in:
@@ -310,21 +310,16 @@ export class BuddyList extends BuddyListConf {
|
|||||||
"#buddy-list-users-matching-view-container",
|
"#buddy-list-users-matching-view-container",
|
||||||
this.users_matching_view_is_collapsed,
|
this.users_matching_view_is_collapsed,
|
||||||
);
|
);
|
||||||
|
// Ensure the "other" section is visible when headers are collapsed,
|
||||||
|
// because we're hiding its header so there's no way to collapse or
|
||||||
|
// uncollapse the list in this view. Ensure we're showing/hiding as
|
||||||
|
// the user specified otherwise.
|
||||||
this.set_section_collapse(
|
this.set_section_collapse(
|
||||||
"#buddy-list-other-users-container",
|
"#buddy-list-other-users-container",
|
||||||
this.other_users_is_collapsed,
|
this.render_data.hide_headers ? false : this.other_users_is_collapsed,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure the "other" section is visible when headers are collapsed,
|
|
||||||
// because we're hiding its header so there's no way to collapse or
|
|
||||||
// uncollapse the list in this view. Ensure we're showing/hiding as
|
|
||||||
// the user specified otherwise.
|
|
||||||
this.set_section_collapse(
|
|
||||||
"#buddy-list-other-users-container",
|
|
||||||
this.render_data.hide_headers ? false : this.other_users_is_collapsed,
|
|
||||||
);
|
|
||||||
|
|
||||||
this.fill_screen_with_content();
|
this.fill_screen_with_content();
|
||||||
|
|
||||||
// This must happen after `fill_screen_with_content`
|
// This must happen after `fill_screen_with_content`
|
||||||
|
Reference in New Issue
Block a user