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.

push_notification: Use `durable=True` for the outermost transaction.

Prakhar Pratyush140e575ddcd4
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index e39a2dc35f4..0c8bee76292 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -1639,7 +1639,7 @@ def handle_push_notification(user_profile_id: int, missed_message: dict[str, Any
# BUG: Investigate why it's possible to get here.
return # nocoverage
- with transaction.atomic(savepoint=False):
+ with transaction.atomic(durable=True):
try:
(message, user_message) = access_message_and_usermessage(
user_profile,