summary refs log tree commit diff
path: root/synapse/federation/federation_client.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-24 18:31:23 +0000
committerErik Johnston <erik@matrix.org>2019-01-24 18:31:23 +0000
commitd148c43050f7a85523a743ff6069683c644a517d (patch)
tree4a87175747cbca6b310e5ad83b8ee18d7dbd7700 /synapse/federation/federation_client.py
parentNewsfile (diff)
downloadsynapse-d148c43050f7a85523a743ff6069683c644a517d.tar.xz
Review comments
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r--synapse/federation/federation_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 4e171f9b56..7fb5736142 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -674,7 +674,8 @@ class FederationClient(FederationBase):
                     break
 
             if room_version is None:
-                # We use this error has that is what
+                # If the state doesn't have a create event then the room is
+                # invalid, and it would fail auth checks anyway.
                 raise SynapseError(400, "No create event in state")
 
             valid_pdus = yield self._check_sigs_and_hash_and_fetch(