mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
[PR #119] [MERGED] fix: increase typing timeout to 4s #115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stoatchat/javascript-client-sdk/pull/119
Author: @Aeledfyr
Created: 9/30/2025
Status: ✅ Merged
Merged: 10/22/2025
Merged by: @insertish
Base:
main← Head:main📝 Commits (1)
56926adfix: increase typing timeout to 4s📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/events/v1.ts(+1 -1)📄 Description
The frontend only sends typing updates every 2.5-3s, so the 1s timeout caused the typing indicator to flicker.
Note that the typing indicators still have some flickering, but it should only be when the user's client sent a StopTyping event, so the source of the flicker is in the sender's typing detection heuristics.
(Given the timeout, I'm not sure if StopTyping events are necessary before a message is actually sent -- would it be simpler to have CurrentlyTyping events with a timeout, and cancel the indicator on the next received message from that user?)
Please make sure to check the following tasks before opening and submitting a PR
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.