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: Change description_html for channel op suggestion.

Pratik Chanda1c86238f4f44
diff --git a/web/src/filter.ts b/web/src/filter.ts
index 3ee08cbb3e8..23cb22ac4b1 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -699,7 +699,7 @@ export class Filter {
switch (operator) {
case "channel":
- return verb + "messages in #";
+ return verb + "messages in a channel";
case "channels":
return verb + "channels";
case "near":
@@ -842,10 +842,11 @@ export class Filter {
if (prefix_for_operator !== "") {
if (canonicalized_operator === "channel") {
const stream = stream_data.get_sub_by_id_string(operand);
+ const verb = term.negated ? "exclude " : "";
if (stream) {
return {
type: "channel",
- prefix_for_operator,
+ prefix_for_operator: verb + "messages in #",
operand: stream.name,
};
}