summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-07-17 11:13:57 +0100
committerRichard van der Hoff <richard@matrix.org>2018-07-17 11:13:57 +0100
commit2172a3d8cb18724b2e77d74afd0789f2abb246e5 (patch)
treec3ecebf7e2dfe739bce9a269a8643986b77a1261 /synapse
parentChangelog (diff)
downloadsynapse-2172a3d8cb18724b2e77d74afd0789f2abb246e5.tar.xz
add a comment
Diffstat (limited to 'synapse')
-rw-r--r--synapse/visibility.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index 27061e4ad9..6209bc0cde 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -291,6 +291,8 @@ def filter_events_for_server(store, server_name, events):
     def include(typ, state_key):
         if typ != EventTypes.Member:
             return True
+
+        # we avoid using get_domain_from_id here for efficiency.
         idx = state_key.find(":")
         if idx == -1:
             return False