mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
buddy_list: Fix bug where participants weren't filtered on search.
This was introduced in ebe15dcf25 where I
mistakenly had us include _all_ participants _always_ even if there was filter
text present. This commit fixes that.
This commit is contained in:
@@ -450,10 +450,9 @@ function get_filtered_user_id_list(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const user_ids = filter_user_ids(user_filter_text, base_user_id_list);
|
|
||||||
// Make sure all the participants are in the list, even if they're inactive.
|
// Make sure all the participants are in the list, even if they're inactive.
|
||||||
const user_ids_set = new Set([...user_ids, ...conversation_participants]);
|
const user_ids_set = new Set([...base_user_id_list, ...conversation_participants]);
|
||||||
return [...user_ids_set];
|
return filter_user_ids(user_filter_text, [...user_ids_set]);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function get_conversation_participants(): Set<number> {
|
export function get_conversation_participants(): Set<number> {
|
||||||
|
|||||||
Reference in New Issue
Block a user