typing: Pass the type parameter in typing requests.

Not passing this parameter is a deprecated way to do things.
This commit is contained in:
Tim Abbott 2024-02-06 21:50:40 -08:00
parent e213d9505b
commit d015a8ca52
1 changed files with 2 additions and 0 deletions

View File

@ -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);