buddy_list: Ensure users are visible when hide_headers is true.

This commit is contained in:
evykassirer 2024-03-20 17:15:47 -07:00 committed by Tim Abbott
parent 1defce3172
commit ba215e3e80
1 changed files with 9 additions and 1 deletions

View File

@ -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();
}
}