mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't require optional invite_room_state
field on fed v2 invite (#14083)
This commit is contained in:
parent
126a15794c
commit
97b3d037c0
1
changelog.d/14083.bugfix
Normal file
1
changelog.d/14083.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix a long-standing bug where Synapse would error on the optional 'invite_room_state' field not being provided to [`PUT /_matrix/federation/v2/invite/{roomId}/{eventId}`](https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv2inviteroomideventid).
|
@ -489,7 +489,7 @@ class FederationV2InviteServlet(BaseFederationServerServlet):
|
||||
|
||||
room_version = content["room_version"]
|
||||
event = content["event"]
|
||||
invite_room_state = content["invite_room_state"]
|
||||
invite_room_state = content.get("invite_room_state", [])
|
||||
|
||||
# Synapse expects invite_room_state to be in unsigned, as it is in v1
|
||||
# API
|
||||
|
Loading…
Reference in New Issue
Block a user