@@ -28,9 +28,12 @@ class RoomsHierarchy {
|
|||||||
let roomHierarchy = this.getHierarchy(roomId);
|
let roomHierarchy = this.getHierarchy(roomId);
|
||||||
|
|
||||||
if (!roomHierarchy) {
|
if (!roomHierarchy) {
|
||||||
const room = this.matrixClient.getRoom(roomId);
|
roomHierarchy = new RoomHierarchy(
|
||||||
if (!room) return null;
|
{ roomId, client: this.matrixClient },
|
||||||
roomHierarchy = new RoomHierarchy(room, limit, this._maxDepth, this._suggestedOnly);
|
limit,
|
||||||
|
this._maxDepth,
|
||||||
|
this._suggestedOnly,
|
||||||
|
);
|
||||||
this.roomIdToHierarchy.set(roomId, roomHierarchy);
|
this.roomIdToHierarchy.set(roomId, roomHierarchy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user