summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-11 17:04:18 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-11 17:04:18 +0000
commit568461b5ec3b4eebe68e6bbe21fc792c71af6a65 (patch)
tree475b4199db7c9f2caa818ff07a7ac51941bd1fa5
parentFix condition (diff)
downloadsynapse-568461b5ec3b4eebe68e6bbe21fc792c71af6a65.tar.xz
Also don't filter out events sent by ignored users when checking state visibility
-rw-r--r--synapse/visibility.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py

index d0b2241e48..82a2132427 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py
@@ -121,7 +121,7 @@ def filter_events_for_client( if event.type == "org.matrix.dummy_event" and filter_send_to_client: return None - if not event.is_state() and event.sender in ignore_list: + if not event.is_state() and event.sender in ignore_list and filter_send_to_client: return None # Until MSC2261 has landed we can't redact malicious alias events, so for