1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-11 19:37:30 +03:00

Use v1 prefix for /hierarchy API, falling back to both previous variants (#2022)

This commit is contained in:
Michael Telatynski
2021-12-15 09:56:07 +00:00
committed by GitHub
parent e4d3124e72
commit 6ac84a2465
4 changed files with 29 additions and 11 deletions

View File

@@ -112,7 +112,7 @@ export class RoomHierarchy {
if (!this.backRefs.has(childRoomId)) {
this.backRefs.set(childRoomId, []);
}
this.backRefs.get(childRoomId).push(ev.room_id);
this.backRefs.get(childRoomId).push(room.room_id);
// fill viaMap
if (Array.isArray(ev.content.via)) {