summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-04 16:04:04 +0000
committerErik Johnston <erik@matrix.org>2019-03-04 16:04:04 +0000
commit0d2d046709270797f46a65672a5702b194dabef9 (patch)
tree06c778fbc488337c3e13c98cb34da2ced60af31f /synapse
parentOnly check history visibility when filtering (diff)
downloadsynapse-0d2d046709270797f46a65672a5702b194dabef9.tar.xz
Fix missing null guard
Diffstat (limited to '')
-rw-r--r--synapse/visibility.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index 8b9c7180b6..e9dc73c25e 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -237,7 +237,7 @@ def filter_events_for_server(store, server_name, events, redact=True,
     """
 
     def is_sender_erased(event, erased_senders):
-        if erased_senders[event.sender]:
+        if erased_senders and erased_senders[event.sender]:
             logger.info(
                 "Sender of %s has been erased, redacting",
                 event.event_id,