diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-23 17:03:25 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-23 17:03:25 +0000 |
commit | 699da5bf1d981e20f8f9684dd4595167d504e676 (patch) | |
tree | c6bd95ddf0df1b91c1c950bacc9efd65566e0398 /synapse/handlers/federation.py | |
parent | Log when we delete room in bg update (#6816) (diff) | |
parent | pass room version into FederationHandler.on_invite_request (#6805) (diff) | |
download | synapse-699da5bf1d981e20f8f9684dd4595167d504e676.tar.xz |
pass room version into FederationHandler.on_invite_request (#6805)
* commit '46a446828': pass room version into FederationHandler.on_invite_request (#6805)
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 3e668c2424..76c34bf840 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1486,13 +1486,13 @@ class FederationHandler(BaseHandler): return {"state": list(state.values()), "auth_chain": auth_chain} @defer.inlineCallbacks - def on_invite_request(self, origin, pdu): + def on_invite_request( + self, origin: str, event: EventBase, room_version: RoomVersion + ): """ We've got an invite event. Process and persist it. Sign it. Respond with the now signed event. """ - event = pdu - if event.state_key is None: raise SynapseError(400, "The invite event did not have a state key") |