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:
evykassirer
2024-11-27 15:18:03 -08:00
committed by Tim Abbott
parent 381faf36b3
commit 2db0a851e1

View File

@@ -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> {