From ab630b166c567d8eff1fb2464e2375ef29b1d711 Mon Sep 17 00:00:00 2001 From: evykassirer Date: Mon, 26 Jun 2023 06:01:03 -0700 Subject: [PATCH] compose state: Check if stream is selected with id instead of name. --- web/src/compose_state.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/compose_state.js b/web/src/compose_state.js index 6ea7f3709e..c4d9eca5f8 100644 --- a/web/src/compose_state.js +++ b/web/src/compose_state.js @@ -163,7 +163,7 @@ export function focus_in_empty_compose(consider_start_of_whitespace_message_empt case "stream_message_recipient_topic": return topic() === ""; case "compose_select_recipient_widget_wrapper": - return stream_name() === ""; + return stream_id() === ""; } return false; @@ -183,7 +183,7 @@ export function has_message_content() { export function has_full_recipient() { if (message_type === "stream") { - return stream_name() !== "" && topic() !== ""; + return stream_id() !== "" && topic() !== ""; } return private_message_recipient() !== ""; }