mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Previously, we would call `rerender_messages_view()` in order to rerender messages after user renames or avatar updates. This would lead to rerendering the entire message list for every change, regardless of whether any specific message had changed or not. This used to be acceptable because user renames and avatar updates were rare events, however, as we plan to show user status emoji near user names and updates to those would be more frequent than is affordable, this commit implements `rerender_messages_view_for_user(user_id)` which only rerenders messages which have actually been changed. This commit is, thus, both an optimisation for the existing code and a prep-commit for the user status emoji.
16 KiB
16 KiB