summary refs log tree commit diff
path: root/synapse/federation/federation_client.py
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-05-05 14:25:00 +0000
committerGitHub <noreply@github.com>2022-05-05 15:25:00 +0100
commita377a43386a14c8a11fe9e99c821d0471f7982a2 (patch)
treefd363df50e1efe9a76c8e80759ea582615a485b4 /synapse/federation/federation_client.py
parentUpdate `_on_new_receipts()` to work with MSC2285 changes. (#12636) (diff)
downloadsynapse-a377a43386a14c8a11fe9e99c821d0471f7982a2.tar.xz
Support MSC3266 room summaries over federation (#11507)
Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r--synapse/federation/federation_client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 6a59cb4b71..b5e0b84cbc 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -1426,6 +1426,8 @@ class FederationClient(FederationBase):
             room = res.get("room")
             if not isinstance(room, dict):
                 raise InvalidResponseError("'room' must be a dict")
+            if room.get("room_id") != room_id:
+                raise InvalidResponseError("wrong room returned in hierarchy response")
 
             # Validate children_state of the room.
             children_state = room.pop("children_state", [])