mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
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:
@@ -167,7 +167,7 @@ export class BuddyList extends BuddyListConf {
|
|||||||
$participants_list = $(this.participants_list_selector);
|
$participants_list = $(this.participants_list_selector);
|
||||||
$users_matching_view_list = $(this.matching_view_list_selector);
|
$users_matching_view_list = $(this.matching_view_list_selector);
|
||||||
$other_users_list = $(this.other_user_list_selector);
|
$other_users_list = $(this.other_user_list_selector);
|
||||||
current_filter: Filter | undefined;
|
current_filter: Filter | undefined | "unset" = "unset";
|
||||||
|
|
||||||
initialize_tooltips(): void {
|
initialize_tooltips(): void {
|
||||||
$("#right-sidebar").on(
|
$("#right-sidebar").on(
|
||||||
|
|||||||
Reference in New Issue
Block a user