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.

search_suggestion: Fix public channels suggestion string.

Pratik Chandaec82c543fe4f
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.ts
index 49ea8d6d414..6ccc25bd0fa 100644
--- a/web/src/search_suggestion.ts
+++ b/web/src/search_suggestion.ts
@@ -594,8 +594,7 @@ function get_channels_filter_suggestions(last: NarrowTerm, terms: NarrowTerm[]):
if (last.operator === "search" && common.phrase_match(last.operand, "streams")) {
search_string = "streams:public";
}
- let description_html = Filter.describe_public_channels(last.negated ?? false);
- description_html = description_html.charAt(0).toUpperCase() + description_html.slice(1);
+ let description_html = "all public channels";
const suggestions: SuggestionAndIncompatiblePatterns[] = [
{
search_string,