mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Fixes: #2734. `local_id` was being transmitted to the server as a string by the AJAX transmission path, and as a number by by the WebSocket transmission path. Then, one of the two racing success callback paths would use the original number, while the other would use the type returned by the server. Depending on which transmission path was used and which callback path won the race, `reify_message_id` would sometimes be passed a string that would fail to compare equal to the numerical selection id. If the locally echoed message was selected, this would cause the selection to disappear. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
10 KiB
10 KiB