compose: Use compose_state.stream_id when name isn't needed.

This partially fixes #25742.
This commit is contained in:
evykassirer
2023-05-25 17:48:11 -07:00
committed by Tim Abbott
parent afd703fe77
commit 7116526492
5 changed files with 30 additions and 24 deletions

View File

@@ -63,8 +63,7 @@ function composing_to_current_private_message_narrow() {
export function update_narrow_to_recipient_visibility() {
const message_type = compose_state.get_message_type();
if (message_type === "stream") {
const stream_name = compose_state.stream_name();
const stream_exists = Boolean(stream_data.get_stream_id(stream_name));
const stream_exists = Boolean(compose_state.stream_id());
if (
stream_exists &&