mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 06:42:13 -04:00
Support MSC3266 room summaries over federation (#11507)
Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
This commit is contained in:
parent
ef86cf3d28
commit
a377a43386
4 changed files with 78 additions and 5 deletions
|
@ -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", [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue