mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Lint
This commit is contained in:
parent
1cde4cf3f1
commit
e38c44b418
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue