mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
We now use render_incoming_message() to render all incoming new messages (sends/edits), so that they will get the same treatment. This change also establishes do_send_messages() as the code path to get new messages rendered. It removes some logic from check_message() that only happened on certain code paths for sending messages, and which would only detect failures by expensively rendering messages, so it wasn't much of a guard. This change also helps to phase out maybe_render_content(), which deepens the call stack without providing much clarity to the reader, since it's behavior is so variable. Finally, this sets up to fix a flaw in the way we compute which users have alert words in their messages (in a subsequent commit).
151 KiB
151 KiB