mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
Previously we were just returning a dict containing a message id when trying to mirror a already sent message in 'zephyr_mirror' cases. This commit changes this behaviour to raise an exception when trying to mirror an already sent message by adding a new exception class ZephyrMessageAlreadySentException and then the caller returns the message_id directly, instead of calling do_send_messages which also returns a list of size one containing the message_id only. This is a prep commit for changing the return type of check_message to be a dataclass instead of a Dict as now we have only single output for check_message.
9.2 KiB
9.2 KiB