Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_flags: Update transactions to be durable in do_mark_all_as_read.
Prakhar Pratyush62eb8504237f
diff --git a/zerver/actions/message_flags.py b/zerver/actions/message_flags.pyindex 8ca5e1ef337..f1faf374cfb 100644--- a/zerver/actions/message_flags.py+++ b/zerver/actions/message_flags.py@@ -55,7 +55,7 @@ def do_mark_all_as_read(user_profile: UserProfile, *, timeout: float | None = Noif timeout is not None and time.monotonic() >= start_time + timeout:return None- with transaction.atomic(savepoint=False):+ with transaction.atomic(durable=True):query = (UserMessage.select_for_update_query().filter(user_profile=user_profile)