user_topics_search: Add support to search for empty string topics.

We show `realm_empty_topic_display_name` for empty string
topics in the SETTINGS/TOPICS table.

This commit makes it possible for users to search for
the `realm_empty_topic_display_name` value to filter out empty
string topics.
This commit is contained in:
Prakhar Pratyush
2025-01-15 15:57:47 +05:30
committed by Tim Abbott
parent e63d9f1e89
commit 0534bc44f0

View File

@@ -42,7 +42,8 @@ export function populate_list(): void {
filter: {
$element: $search_input,
predicate(item, value) {
return item.topic.toLocaleLowerCase().includes(value);
const topic_display_name = util.get_final_topic_display_name(item.topic);
return topic_display_name.toLocaleLowerCase().includes(value);
},
onupdate() {
scroll_util.reset_scrollbar(