mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
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:
committed by
Tim Abbott
parent
8a1b1590ad
commit
e63d9f1e89
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user