Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox_typeahead: Change string for wildcard mention suggestion.
Pratik Chandab495f72f3ad7
diff --git a/web/src/composebox_typeahead.ts b/web/src/composebox_typeahead.tsindex 890ac851dcd..913e5296a05 100644--- a/web/src/composebox_typeahead.ts+++ b/web/src/composebox_typeahead.ts@@ -490,9 +490,9 @@ function get_wildcard_string(mention: string): string {return $t({defaultMessage: "Notify recipients"});}if (mention === "topic") {- return $t({defaultMessage: "Notify topic"});+ return $t({defaultMessage: "Notify participants in this conversation"});}- return $t({defaultMessage: "Notify channel"});+ return $t({defaultMessage: "Notify all channel subscribers"});}export function broadcast_mentions(): PseudoMentionUser[] {diff --git a/web/tests/composebox_typeahead.test.cjs b/web/tests/composebox_typeahead.test.cjsindex daf16eaa253..7b25bbfc333 100644--- a/web/tests/composebox_typeahead.test.cjs+++ b/web/tests/composebox_typeahead.test.cjs@@ -138,15 +138,18 @@ run_test("verify wildcard mentions typeahead for stream message", () => {assert.equal(mention_topic.full_name, "topic");assert.equal(mention_all.special_item_text, "all");- assert.equal(mention_all.secondary_text, "translated: Notify channel");+ assert.equal(mention_all.secondary_text, "translated: Notify all channel subscribers");assert.equal(mention_everyone.special_item_text, "everyone");- assert.equal(mention_everyone.secondary_text, "translated: Notify channel");+ assert.equal(mention_everyone.secondary_text, "translated: Notify all channel subscribers");assert.equal(mention_stream.special_item_text, "stream");- assert.equal(mention_stream.secondary_text, "translated: Notify channel");+ assert.equal(mention_stream.secondary_text, "translated: Notify all channel subscribers");assert.equal(mention_channel.special_item_text, "channel");- assert.equal(mention_channel.secondary_text, "translated: Notify channel");+ assert.equal(mention_channel.secondary_text, "translated: Notify all channel subscribers");assert.equal(mention_topic.special_item_text, "topic");- assert.equal(mention_topic.secondary_text, "translated: Notify topic");+ assert.equal(+ mention_topic.secondary_text,+ "translated: Notify participants in this conversation",+ );compose_validate.stream_wildcard_mention_allowed = () => false;compose_validate.topic_wildcard_mention_allowed = () => true;