buddy_list: Always update section hiddenness on populate.

We need to do this even when searching users, because it's
possible to change narrows while searching for users.
This commit is contained in:
evykassirer
2024-11-27 15:07:53 -08:00
committed by Tim Abbott
parent 0048dfabd0
commit 1e542b8f7a

View File

@@ -316,8 +316,8 @@ export class BuddyList extends BuddyListConf {
$("#buddy-list-other-users-container .view-all-users-link").remove();
if (!buddy_data.get_is_searching_users()) {
this.render_view_user_list_links();
this.display_or_hide_sections();
}
this.display_or_hide_sections();
// `populate` always rerenders all user rows, so we need new load handlers.
// This logic only does something is a user has enabled the setting to