summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-02 14:26:07 +0100
committerErik Johnston <erik@matrix.org>2016-09-02 14:26:07 +0100
commit34e5e17f916d50027939582f1fd9d399592ba63f (patch)
tree2d89f2f8425cbd171598907fddbd0eb29d71f7dd /synapse/handlers/federation.py
parentOnly check if host is in room if we have state and auth_chain (diff)
downloadsynapse-34e5e17f916d50027939582f1fd9d399592ba63f.tar.xz
Comment
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index ca51044ae4..2338c3a72b 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -118,6 +118,9 @@ class FederationHandler(BaseHandler):
 
         # FIXME (erikj): Awful hack to make the case where we are not currently
         # in the room work
+        # If state and auth_chain are None, then we don't need to do this check
+        # as we already know we have enough state in the DB to handle this
+        # event.
         if state and auth_chain and not event.internal_metadata.is_outlier():
             is_in_room = yield self.auth.check_host_in_room(
                 event.room_id,