summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-07-17 14:53:34 +0100
committerRichard van der Hoff <richard@matrix.org>2018-07-17 14:53:34 +0100
commit79eb339c662f47b2a525d303de941c67f52f0e21 (patch)
tree9f7b125f76d9dbb78f5b1a510a5e6dd84e8ff3d6
parentchangelog (diff)
downloadsynapse-79eb339c662f47b2a525d303de941c67f52f0e21.tar.xz
add a comment
-rw-r--r--synapse/visibility.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index 202daa6800..9b97ea2b83 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -248,6 +248,8 @@ def filter_events_for_server(store, server_name, events):
             )
             return prune_event(event)
 
+        # state will be None if we decided we didn't need to filter by
+        # room membership.
         if not state:
             return event