buddy_list: Differentiate updating and changing to an undefined filter.

Followup to #31960. I forgot to consider the case of a narrow with
an undefined filter. To make sure we fully run render_section_headers
on narrows like Recent Conversations the first time they load, this
commit initializes `current_filter` to the string "unset".
This commit is contained in:
evykassirer 2024-10-14 12:21:42 -07:00 committed by Tim Abbott
parent 3e3ca26aae
commit e5dd75baf0
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ export class BuddyList extends BuddyListConf {
$participants_list = $(this.participants_list_selector);
$users_matching_view_list = $(this.matching_view_list_selector);
$other_users_list = $(this.other_user_list_selector);
current_filter: Filter | undefined;
current_filter: Filter | undefined | "unset" = "unset";
initialize_tooltips(): void {
$("#right-sidebar").on(