summary refs log tree commit diff
path: root/synapse/visibility.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-11 15:32:07 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-11 17:53:18 +0000
commit9c0775e86ab39b193670723927a1caf67f6bfc11 (patch)
tree6fb5f8a9787718496babe47fe2993ac98737b321 /synapse/visibility.py
parentDon't filter out dummy events when we're checking the visibility of state (diff)
downloadsynapse-9c0775e86ab39b193670723927a1caf67f6bfc11.tar.xz
Fix condition
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r--synapse/visibility.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index 1d538b206d..d0b2241e48 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -95,7 +95,7 @@ def filter_events_for_client(
 
     erased_senders = yield storage.main.are_users_erased((e.sender for e in events))
 
-    if not filter_send_to_client:
+    if filter_send_to_client:
         room_ids = {e.room_id for e in events}
         retention_policies = {}