Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typing: Check for valid user IDs when setting typing recipient.
Lauryn Menardefc6c70d3bfa
diff --git a/web/src/typing.ts b/web/src/typing.tsindex 1ef4e770e8b..8a9f6a44021 100644--- a/web/src/typing.ts+++ b/web/src/typing.ts@@ -111,10 +111,15 @@ function notify_server_stop(to: Recipient): void {export function get_recipient(): Recipient | null {const message_type = compose_state.get_message_type();if (message_type === "private") {+ const user_ids = get_user_ids_array();+ // compose box with no valid user pills.+ if (user_ids === null) {+ return null;+ }return {message_type: "direct",notification_event_type: "typing",- ids: get_user_ids_array()!,+ ids: user_ids,};}if (message_type === "stream") {