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.

web-compose-typeahead: Update wildcard string for stream rename channel.

Lauryn Menardff98758ed0e9
diff --git a/web/src/composebox_typeahead.js b/web/src/composebox_typeahead.js
index eab820e6870..c4e9a7b2008 100644
--- a/web/src/composebox_typeahead.js
+++ b/web/src/composebox_typeahead.js
@@ -391,7 +391,7 @@ function get_wildcard_string(mention) {
if (mention === "topic") {
return $t({defaultMessage: "Notify topic"});
}
- return $t({defaultMessage: "Notify stream"});
+ return $t({defaultMessage: "Notify channel"});
}
export function broadcast_mentions() {
diff --git a/web/tests/composebox_typeahead.test.js b/web/tests/composebox_typeahead.test.js
index 2a07b5c7e8c..bcfb07eaa83 100644
--- a/web/tests/composebox_typeahead.test.js
+++ b/web/tests/composebox_typeahead.test.js
@@ -86,10 +86,10 @@ run_test("verify wildcard mentions typeahead for stream message", () => {
assert.equal(mention_topic.email, "topic");
assert.equal(mention_topic.full_name, "topic");
- assert.equal(mention_all.special_item_text, "all (translated: Notify stream)");
- assert.equal(mention_everyone.special_item_text, "everyone (translated: Notify stream)");
- assert.equal(mention_stream.special_item_text, "stream (translated: Notify stream)");
- assert.equal(mention_channel.special_item_text, "channel (translated: Notify stream)");
+ assert.equal(mention_all.special_item_text, "all (translated: Notify channel)");
+ assert.equal(mention_everyone.special_item_text, "everyone (translated: Notify channel)");
+ assert.equal(mention_stream.special_item_text, "stream (translated: Notify channel)");
+ assert.equal(mention_channel.special_item_text, "channel (translated: Notify channel)");
assert.equal(mention_topic.special_item_text, "topic (translated: Notify topic)");
compose_validate.stream_wildcard_mention_allowed = () => false;