Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Don't require optional invite_room_state field on fed v2 invite (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Oct 14, 2022
1 parent 126a157 commit 97b3d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/14083.bugfix
Original file line number Diff line number Diff line change
@@ -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).
2 changes: 1 addition & 1 deletion synapse/federation/transport/server/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ async def on_PUT(

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
Expand Down

0 comments on commit 97b3d03

Please sign in to comment.