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.

export: Fix potential set precedence confusion.

Alex Vandiver6f1f930f1cd2
diff --git a/zerver/lib/export.py b/zerver/lib/export.py
index 2df49dc36ca..c372be5d45d 100644
--- a/zerver/lib/export.py
+++ b/zerver/lib/export.py
@@ -1837,7 +1837,7 @@ def export_partial_message_files(
user_profile_id__in=consented_user_ids
).values_list("recipient_id", flat=True)
- recipient_ids_set = set(public_stream_recipient_ids) | set(consented_recipient_ids) - set(
+ recipient_ids_set = (set(public_stream_recipient_ids) | set(consented_recipient_ids)) - set(
streams_with_protected_history_recipient_ids
)
recipient_ids_for_us = get_ids(response["zerver_recipient"]) & recipient_ids_set