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

bugfix: ui: Do not update footer if new text is same as current. #748

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

kaustubh-nair
Copy link
Member

This prevents rapid footer updates if an error message is triggered
multiple times. An example of this would be a user holding-down/pressing
too often the edit message key on a message that cannot be edited.

This fix does not account for updates that might happen for different
messages, but we can safely assume that the time difference between such
messages would not be too small and such a bug would most likely not
occur.

Test added.

Fixes #647.

@zulipbot zulipbot added size: S [Automatic label added by zulipbot] bug Something isn't working labels Jul 28, 2020
@kaustubh-nair
Copy link
Member Author

This is an alternative to #725

@kaustubh-nair kaustubh-nair added the PR needs review PR requires feedback to proceed label Jul 28, 2020
@neiljp neiljp added this to the Release after next milestone Jan 28, 2021
Base automatically changed from master to main January 30, 2021 20:30
This prevents rapid footer updates if an error message is triggered
multiple times. An example of this would be a user holding-down/pressing
too often the edit message key on a message that cannot be edited.

This fix does not account for updates that might happen for different
messages, but we can safely assume that the time difference between such
messages would not be too small and such a bug would most likely not
occur.

Test added.

Fixes zulip#647.

Comment & slight adjustment by neiljp.
@neiljp neiljp force-pushed the rapid-footer-updates-v2 branch from 5c631d9 to f3d878f Compare March 13, 2022 06:02
@neiljp neiljp added PR ready to be merged PR has been reviewed & is ready to be merged and removed PR needs review PR requires feedback to proceed labels Mar 13, 2022
@neiljp
Copy link
Collaborator

neiljp commented Mar 13, 2022

@kaustubh-nair Rebased and merged this great simple fix with minor tweaks, thanks! 🎉

@neiljp neiljp merged commit b1235d2 into zulip:main Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR ready to be merged PR has been reviewed & is ready to be merged size: S [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Footer gets updated as many times as the edit key is pressed on any uneditable message
3 participants