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.

compose: Update compose placeholder text if stream name is changed.

Vinit Singh140d24ca7fd0
diff --git a/static/js/compose.js b/static/js/compose.js
index 2a8a6832767..27e5dbd10f0 100644
--- a/static/js/compose.js
+++ b/static/js/compose.js
@@ -1226,6 +1226,10 @@ exports.initialize = function () {
compose_actions.update_placeholder_text();
});
+ $("#stream_message_recipient_topic").on("focus", () => {
+ compose_actions.update_placeholder_text();
+ });
+
if (page_params.narrow !== undefined) {
if (page_params.narrow_topic !== undefined) {
compose_actions.start("stream", {topic: page_params.narrow_topic});