mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 17:43:58 +00:00
message_send: Update do_send_messages codepath to send event on commit.
Earlier, we were using 'send_event' & 'queue_json_publish' in 'do_send_messages' which can lead to a situation where we enqueue events but the transaction fails at a later stage. Events should not be sent until we know we're not rolling back.
This commit is contained in:
committed by
Tim Abbott
parent
27c4e46b30
commit
c798d192dc
@@ -1769,6 +1769,7 @@ class StreamMessagesTest(ZulipTestCase):
|
||||
user,
|
||||
stream_name,
|
||||
content=content,
|
||||
skip_capture_on_commit_callbacks=True,
|
||||
)
|
||||
users = events[0]["users"]
|
||||
user_ids = {u["id"] for u in users}
|
||||
|
||||
Reference in New Issue
Block a user