mirror of https://github.com/zulip/zulip.git
compose state: Check if stream is selected with id instead of name.
This commit is contained in:
parent
368c613738
commit
ab630b166c
|
@ -163,7 +163,7 @@ export function focus_in_empty_compose(consider_start_of_whitespace_message_empt
|
||||||
case "stream_message_recipient_topic":
|
case "stream_message_recipient_topic":
|
||||||
return topic() === "";
|
return topic() === "";
|
||||||
case "compose_select_recipient_widget_wrapper":
|
case "compose_select_recipient_widget_wrapper":
|
||||||
return stream_name() === "";
|
return stream_id() === "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -183,7 +183,7 @@ export function has_message_content() {
|
||||||
|
|
||||||
export function has_full_recipient() {
|
export function has_full_recipient() {
|
||||||
if (message_type === "stream") {
|
if (message_type === "stream") {
|
||||||
return stream_name() !== "" && topic() !== "";
|
return stream_id() !== "" && topic() !== "";
|
||||||
}
|
}
|
||||||
return private_message_recipient() !== "";
|
return private_message_recipient() !== "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue