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

Commit 57d334a

Browse files
authored
Remove the unspecced room_id field in the /hierarchy response. (#13365)
The `room_id` field represented the parent space for each room and was made redundant by changes in the API shape where the `children_state` is now nested underneath each `room`. The room ID of each child is in the `state_key` field and is still available.
1 parent ca3db04 commit 57d334a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

changelog.d/13365.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug introduced in Synapse v1.41.0 where the `/hierarchy` API returned non-standard information (a `room_id` field under each entry in `children_state`).

synapse/handlers/room_summary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ async def _summarize_local_room(
452452
"type": e.type,
453453
"state_key": e.state_key,
454454
"content": e.content,
455-
"room_id": e.room_id,
456455
"sender": e.sender,
457456
"origin_server_ts": e.origin_server_ts,
458457
}

0 commit comments

Comments
 (0)