Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Suppress 'general chat' with open recipient widget.
Karl Stolley4723492e12cf
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.tsindex 9452295cd41..64802751dfa 100644--- a/web/src/compose_recipient.ts+++ b/web/src/compose_recipient.ts@@ -365,11 +365,13 @@ export function update_topic_displayed_text(const $input = $("input#stream_message_recipient_topic");const is_empty_string_topic = topic_name === "";let topic_placeholder_text = $t({defaultMessage: "Topic"});+ const recipient_widget_hidden =+ $(".compose_select_recipient-dropdown-list-container").length === 0;// Remove any stale references to the empty topic display$input.removeClass("empty-topic-display");- if (is_empty_string_topic && !has_topic_focus) {+ if (is_empty_string_topic && !has_topic_focus && recipient_widget_hidden) {topic_placeholder_text = util.get_final_topic_display_name("");$input.addClass("empty-topic-display");}