Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox: Set compose_state.topic early to avoid placeholder issue.
Prakhar Pratyush36793f53c667
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.tsindex 95f72660ac9..7e9471ddac0 100644--- a/web/src/compose_recipient.ts+++ b/web/src/compose_recipient.ts@@ -365,9 +365,10 @@ export function update_topic_displayed_text(if (topic_name === undefined) {topic_name = "";}- // When topics are mandatory, we just call topic() as usual.+ compose_state.topic(topic_name);++ // When topics are mandatory, no additional adjustments are needed.if (realm.realm_mandatory_topics) {- compose_state.topic(topic_name);return;}// Otherwise, we have some adjustments to make to display:@@ -400,8 +401,6 @@ export function update_topic_displayed_text(update_placeholder_visibility();$input.on("input", update_placeholder_visibility);}-- compose_state.topic(topic_name);}export let update_compose_area_placeholder_text = (): void => {