Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_send: Don't create savepoint in do_send_messages.

Prakhar Pratyush23fc04577b79
diff --git a/zerver/actions/message_send.py b/zerver/actions/message_send.py
index d58a8279a55..a6565b6da7a 100644
--- a/zerver/actions/message_send.py
+++ b/zerver/actions/message_send.py
@@ -865,7 +865,7 @@ def do_send_messages(
# Save the message receipts in the database
user_message_flags: Dict[int, Dict[int, List[str]]] = defaultdict(dict)
- with transaction.atomic():
+ with transaction.atomic(savepoint=False):
Message.objects.bulk_create(send_request.message for send_request in send_message_requests)
# Claim attachments in message