diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-01-30 22:13:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 22:13:02 +0000 |
commit | 46a446828d1b4b1ca2d9b0dcae97323a1bbc0c0b (patch) | |
tree | fe00a95963e4a411e9982cb7b0bcd1be5acb5bd9 /synapse/handlers/federation.py | |
parent | Log when we delete room in bg update (#6816) (diff) | |
download | synapse-46a446828d1b4b1ca2d9b0dcae97323a1bbc0c0b.tar.xz |
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 ca484e5458..01372f6d47 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1482,13 +1482,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") |