mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Firefox and Chrome handle selection of multiple messages differently. FF creates multiple Ranges and Chrome creates one. Code written previously terminated when we got an empty Range or Range with same starting and ending message. This behaviour was incorrect since the selection was valid. * Check for same message is done after looping through all the ranges now. * `construct_copy_div` is called once since it is much easier to determine start_id and end_id with confidence and this avoids any overlap between same message ids. Extended by tabbott to include a ton of comments on how this works. Fixes #11805.
12 KiB
12 KiB