inbox-search: Add support to search for empty string topics.

We show `realm_empty_topic_display_name` for empty string
topics in the inbox view.

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:33:27 +05:30
committed by Tim Abbott
parent 8a1b1590ad
commit e63d9f1e89

View File

@@ -772,7 +772,8 @@ function filter_should_hide_stream_row({
return true;
}
const text = (sub.name + " " + topic).toLowerCase();
const topic_display_name = util.get_final_topic_display_name(topic);
const text = (sub.name + " " + topic_display_name).toLowerCase();
if (!row_in_search_results(search_keyword, text)) {
return true;