Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent topics: Use stream_name instead of stream for clarity.

evykassirer8e33b7a3a7ee
diff --git a/web/src/recent_topics_ui.js b/web/src/recent_topics_ui.js
index 506e8adac89..ac79c559b4f 100644
--- a/web/src/recent_topics_ui.js
+++ b/web/src/recent_topics_ui.js
@@ -521,11 +521,11 @@ export function process_topic_edit(old_stream_id, old_topic, new_topic, new_stre
process_messages(new_topic_msgs);
}
-export function topic_in_search_results(keyword, stream, topic) {
+export function topic_in_search_results(keyword, stream_name, topic) {
if (keyword === "") {
return true;
}
- const text = (stream + " " + topic).toLowerCase();
+ const text = (stream_name + " " + topic).toLowerCase();
const search_words = keyword.toLowerCase().split(/\s+/);
return search_words.every((word) => text.includes(word));
}