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: Use canonical terms where possible.

Aman Agrawal9b5e2624812e
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.ts
index 36f023c00e0..cd3a4634044 100644
--- a/web/src/search_suggestion.ts
+++ b/web/src/search_suggestion.ts
@@ -350,13 +350,13 @@ function get_group_suggestions(
persons = persons.slice(0, 15);
return persons.map((person) => {
- const term: NarrowTerm = {
+ const term: NarrowCanonicalTerm = {
operator: group_operator,
operand: all_but_last_part + "," + person.email,
negated,
};
- let terms: NarrowTerm[] = [term];
+ let terms: NarrowCanonicalTerm[] = [term];
if (group_operator === "dm" && negated) {
terms = [{operator: "is", operand: "dm"}, term];
}