diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-06-10 07:15:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 07:15:51 -0400 |
commit | 81608490e364d5a332b06606aba0703f2fb5d0a9 (patch) | |
tree | 6775d0d9d68f3f97c3a227ea819217ba253468a9 /synapse | |
parent | Enable testing against PostgreSQL databases in Complement CI. (#12965) (diff) | |
download | synapse-81608490e364d5a332b06606aba0703f2fb5d0a9.tar.xz |
Stop depending on `room_id` to be returned for children state in the hierarchy response. (#12991)
The `room_id` field was removed from MSC2946 before it was accepted. It was initially kept for backwards compatibility and should be removed now that the stable form of the API is used. This change only stops Synapse from validating that it is returned, a future PR will remove returning it as part of the response.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/federation/federation_client.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index ad475a913b..66e6305562 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -1642,10 +1642,6 @@ def _validate_hierarchy_event(d: JsonDict) -> None: if not isinstance(event_type, str): raise ValueError("Invalid event: 'event_type' must be a str") - room_id = d.get("room_id") - if not isinstance(room_id, str): - raise ValueError("Invalid event: 'room_id' must be a str") - state_key = d.get("state_key") if not isinstance(state_key, str): raise ValueError("Invalid event: 'state_key' must be a str") |