Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typing_status: Add an extra notification_event_type to Recipients.
roanster00707ccd29a9b04
diff --git a/web/shared/src/typing_status.ts b/web/shared/src/typing_status.tsindex 1775ff96f32..c640cc02b99 100644--- a/web/shared/src/typing_status.ts+++ b/web/shared/src/typing_status.ts@@ -8,10 +8,12 @@ type StreamTopic = {export type Recipient =| {message_type: "direct";+ notification_event_type: "typing";ids: number[];}| (StreamTopic & {message_type: "stream";+ notification_event_type: "typing";});type TypingStatusWorker = {get_current_time: () => number;diff --git a/web/src/typing.ts b/web/src/typing.tsindex 8262d0d430d..c6b488ceaf7 100644--- a/web/src/typing.ts+++ b/web/src/typing.ts@@ -113,6 +113,7 @@ export function get_recipient(): Recipient | null {if (message_type === "private") {return {message_type: "direct",+ notification_event_type: "typing",ids: get_user_ids_array()!,};}@@ -122,6 +123,7 @@ export function get_recipient(): Recipient | null {const topic = compose_state.topic();return {message_type: "stream",+ notification_event_type: "typing",stream_id,topic,};