mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 22:24:55 -04:00
pass room version into FederationHandler.on_invite_request (#6805)
This commit is contained in:
parent
e0992fcc5b
commit
46a446828d
3 changed files with 5 additions and 4 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue