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

Compose box placeholder text for streams currently updates when focus
is shifted to the text area.

With this change, it will also get updated when the stream name is
changed (it already updates if topic names are changed).
This commit is contained in:
Vinit Singh
2020-09-01 21:16:14 +05:30
committed by Tim Abbott
parent d43b1765d5
commit 140d24ca7f

View File

@@ -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});