Stop typing on message sent

This commit is contained in:
2025-10-19 18:16:08 +03:00
Unverified
parent 1e86b9fc84
commit 66f0b756a0
3 changed files with 37 additions and 9 deletions
+16
View File
@@ -203,6 +203,22 @@ export class TypingManager {
}
}
/**
* Immediately stop typing for public chat (called when message is sent)
*/
async stopTypingOnMessage(): Promise<void> {
this.clearStopTypingTimeout("public");
await this.sendStopTyping();
}
/**
* Immediately stop DM typing (called when message is sent)
*/
async stopDmTypingOnMessage(recipientId: number): Promise<void> {
this.clearStopTypingTimeout(`dm_${recipientId}`);
await this.sendStopDmTyping(recipientId);
}
/**
* Cleanup all timeouts
*/