mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
This commit extracts the edited notice computation logic of edited_in_left_col, edited_alongside_sender and edited_status_message to a new function - set_edited_notice_locations and calls it right after the method merge_message_groups. This is a preparatory commit, and is done since theses three variables were previously wrongly initialized in the beginning for live messages received. We also introduce a modified flag to decide whether to display the edited notice or not. This is useful since now we are computing the edited notice values even when messages are not edited, and hence we show the notices only when the modified flag is true.
31 KiB
31 KiB