zulip-terminal
zulip-terminal copied to clipboard
Limit rapid keypresses
This PR solves the rate-limiting issues by due to rapid keypresses by:
- Preventing concurrent up/down when at the top or bottom of the
MessageView
. - Rate limits pressing of other keys to 15 consecutive presses.
Gave some thoughts in #zulip-terminal>Rate limiting issues.
Heads up @kaustubh-nair, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/master
branch and resolve your pull request's merge conflicts accordingly.
Hmm, good question; I'm not sure what the right server API would be for indicating the rate-limiting structure; maybe a good discussion for #backend.
I'm not sure I understand the situation here -- is the user behavior with ZT that causes it to potentially hit rate limits something we expect users to want to do? The issue may be structurally a UI problem.