Also don't filter out events sent by ignored users when checking state visibility

This commit is contained in:
Brendan Abolivier 2020-03-11 17:04:18 +00:00
parent 6b73b8b70c
commit 568461b5ec
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD

View file

@ -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