summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-10-14 13:48:33 +0100
committerGitHub <noreply@github.com>2022-10-14 13:48:33 +0100
commit97b3d037c043d5c91c2a36109cab0c668a6a13ed (patch)
tree863746d9124e38061ac0265f60f6367d54b2b722 /synapse
parentDo not allow a None-limit on PaginationConfig. (#14146) (diff)
downloadsynapse-97b3d037c043d5c91c2a36109cab0c668a6a13ed.tar.xz
Don't require optional `invite_room_state` field on fed v2 invite (#14083)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/federation/transport/server/federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/transport/server/federation.py b/synapse/federation/transport/server/federation.py
index 6bb4659c4c..6f11138b57 100644
--- a/synapse/federation/transport/server/federation.py
+++ b/synapse/federation/transport/server/federation.py
@@ -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