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_pill: Use `render_data` to generate search description.

Aman Agrawal5e0c5dc03151
diff --git a/web/src/search_pill.ts b/web/src/search_pill.ts
index e61058ca524..db78787622b 100644
--- a/web/src/search_pill.ts
+++ b/web/src/search_pill.ts
@@ -218,7 +218,13 @@ export function generate_pills_html(suggestion: Suggestion, text_query: string):
const is_operator_suggestion =
search_terms[0]!.operator !== "" && !text_query.includes(":");
description_html = Filter.search_description_as_html(
- search_terms,
+ [
+ {
+ operator: render_data.operator,
+ operand: render_data.operand,
+ negated: render_data.negated,
+ },
+ ],
is_operator_suggestion,
);
const capitalized_first_letter = description_html.charAt(0).toUpperCase();