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: Remove "All messages" typeahead

BrandonAWong6edf24b0f71b
diff --git a/web/src/search_suggestion.js b/web/src/search_suggestion.js
index a83c7acf532..ce42dbe008d 100644
--- a/web/src/search_suggestion.js
+++ b/web/src/search_suggestion.js
@@ -500,11 +500,6 @@ function get_special_filter_suggestions(last, operators, suggestions) {
s.description_html.toLowerCase().startsWith(last_string)
);
});
-
- // Only show home if there's an empty bar
- if (operators.length === 0 && last_string === "") {
- suggestions.unshift({search_string: "", description_html: "All messages"});
- }
return suggestions;
}
diff --git a/web/tests/search_suggestion.test.js b/web/tests/search_suggestion.test.js
index f91b6798464..8f610ca5dc5 100644
--- a/web/tests/search_suggestion.test.js
+++ b/web/tests/search_suggestion.test.js
@@ -95,7 +95,7 @@ test("basic_get_suggestions_for_spectator", () => {
const query = "";
const suggestions = get_suggestions(query);
- assert.deepEqual(suggestions.strings, ["", "has:link", "has:image", "has:attachment"]);
+ assert.deepEqual(suggestions.strings, ["has:link", "has:image", "has:attachment"]);
page_params.is_spectator = false;
});
@@ -419,7 +419,6 @@ test("empty_query_suggestions", () => {
const suggestions = get_suggestions(query);
const expected = [
- "",
"streams:public",
"is:dm",
"is:starred",