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: Avoid duplicate search results from case sensitivity.

evykassirerd23d8b8565b5
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.ts
index cd385dfe0a0..4f32882a757 100644
--- a/web/src/search_suggestion.ts
+++ b/web/src/search_suggestion.ts
@@ -853,8 +853,8 @@ class Attacher {
push(suggestion_line: SuggestionLine): void {
const search_string = suggestion_search_string(suggestion_line);
- if (!this.prev.has(search_string)) {
- this.prev.add(search_string);
+ if (!this.prev.has(search_string.toLowerCase())) {
+ this.prev.add(search_string.toLowerCase());
this.result.push(suggestion_line);
}
}