mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
compose: Allow stream_id of ComposeTriggeredOptions to be undefined.
This commit is contained in:
@@ -28,7 +28,7 @@ export type ComposeTriggeredOptions = {
|
||||
| {
|
||||
message_type: "stream";
|
||||
topic: string;
|
||||
stream_id: number;
|
||||
stream_id?: number;
|
||||
}
|
||||
| {
|
||||
message_type: "private";
|
||||
@@ -102,7 +102,7 @@ function get_focus_area(opts: ComposeTriggeredOptions): string {
|
||||
if (opts.message_type === "stream" && opts.stream_id && !opts.topic) {
|
||||
return "input#stream_message_recipient_topic";
|
||||
} else if (
|
||||
(opts.message_type === "stream" && opts.stream_id) ||
|
||||
(opts.message_type === "stream" && opts.stream_id !== undefined) ||
|
||||
(opts.message_type === "private" && opts.private_message_recipient)
|
||||
) {
|
||||
if (opts.trigger === "clear topic button") {
|
||||
|
||||
Reference in New Issue
Block a user