Review comments

pull/14/head
Erik Johnston 6 years ago
parent a4ef8d8dd5
commit d148c43050
  1. 3
      synapse/federation/federation_client.py
  2. 5
      synapse/handlers/federation.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(

@ -1664,6 +1664,11 @@ class FederationHandler(BaseHandler):
create_event = e
break
if create_event is None:
# 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")
room_version = create_event.content.get("room_version", RoomVersions.V1)
missing_auth_events = set()

Loading…
Cancel
Save