From d015a8ca5231b554e7aecb0edab5d8678a5871ad Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 6 Feb 2024 21:50:40 -0800 Subject: [PATCH] typing: Pass the type parameter in typing requests. Not passing this parameter is a deprecated way to do things. --- web/src/typing.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/typing.ts b/web/src/typing.ts index 6aff95e063..c1829cd1f2 100644 --- a/web/src/typing.ts +++ b/web/src/typing.ts @@ -14,6 +14,7 @@ import {user_settings} from "./user_settings"; type TypingAPIRequest = {op: "start" | "stop"} & ( | { + type: string; to: string; } | { @@ -46,6 +47,7 @@ function send_direct_message_typing_notification( ): void { const data = { to: JSON.stringify(user_ids_array), + type: "direct", op: operation, }; send_typing_notification_ajax(data);