diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-03-11 18:06:07 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2020-03-11 18:06:07 +0000 |
commit | e38c44b418328e79e8da3e8ed259ee51d2f1c215 (patch) | |
tree | 8ead890b6fd3dc181672d60183150a5bb2df6b24 /synapse/visibility.py | |
parent | Changelog (diff) | |
download | synapse-e38c44b418328e79e8da3e8ed259ee51d2f1c215.tar.xz |
Lint
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r-- | synapse/visibility.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py index 82a2132427..fce5855413 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py @@ -121,7 +121,11 @@ 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 and filter_send_to_client: + 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 |