mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 22:42:23 +01:00
Fix missing null guard
This commit is contained in:
parent
d1523aed6b
commit
0d2d046709
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ def filter_events_for_server(store, server_name, events, redact=True,
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def is_sender_erased(event, erased_senders):
|
def is_sender_erased(event, erased_senders):
|
||||||
if erased_senders[event.sender]:
|
if erased_senders and erased_senders[event.sender]:
|
||||||
logger.info(
|
logger.info(
|
||||||
"Sender of %s has been erased, redacting",
|
"Sender of %s has been erased, redacting",
|
||||||
event.event_id,
|
event.event_id,
|
||||||
|
|
Loading…
Reference in a new issue