buddy_list: Make sure we always open Others section during search.

This commit is contained in:
Evy Kassirer
2025-03-27 14:43:38 -07:00
committed by Tim Abbott
parent d7873fbc11
commit 70e542c9cc

View File

@@ -310,21 +310,16 @@ export class BuddyList extends BuddyListConf {
"#buddy-list-users-matching-view-container",
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(
"#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 must happen after `fill_screen_with_content`