mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
This also fixes trying to cancel a resend of a local message. The problem were was type confusion between strings and ints. The function in `rows.js` may feel like overkill, but I really want to enforce type safety here, as we usually treat message ids as floats, but for the local-echo case we're gonna get strings. I put it in `rows` because we mostly do a good job of encapsulating the "zid" role in the DOM there. By going directly to the DOM here, we avoid parsing a string to a float and then converting it right back to a string, which always make me queasy about float rounding, so one less moving part.
5.0 KiB
5.0 KiB