mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Previously, if you topic-edited locally echoed messages, it would
throw this exception:
TypeError: Cannot read property 'indexOf' of undefined
at Object.h.is_status_message (https://chat.zulip.org/static/min/app.274582375298.js:1742:154)
= static/js/markdown.js line 125 column 13
at Object.h.apply_markdown (https://chat.zulip.org/static/min/app.274582375298.js:1741:291)
= static/js/markdown.js line 93 column 29
at Object.a.edit_locally (https://chat.zulip.org/static/min/app.274582375298.js:1750:195)
= static/js/echo.js line 176 column 5
at Object.d.save (https://chat.zulip.org/static/min/app.274582375298.js:1921:376)
= static/js/message_edit.js line 132 column 13
The behavior with this patch is still not ideal, in that we don't ever
send the edit to the server (if the issue was lag, not an actual error
on sending), but this at least makes the on-error case correct.
10 KiB
10 KiB