Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added typingTimeoutMargin to improve continuity of typing indicator. #100

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

marcin-cebo
Copy link
Contributor

No description provided.

Handles a few ToDo-s
typingSent?.let { typingSentNotNull: Instant ->
if (!timeoutElapsed(typingTimeout, typingSentNotNull, now)) {
val typingTimoutMargin = 500.milliseconds // sendTypingSignal 500 millis before typingTimeout expires to ensure continuity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract 500.milliseconds to top-level?

@marcin-cebo marcin-cebo merged commit 739e578 into master Oct 10, 2024
5 checks passed
@marcin-cebo marcin-cebo deleted the mc/sendTypingSignal branch October 10, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants