Fix bug in room hierarchy
Signed-off-by: ajbura <ajbura@gmail.com>
This commit is contained in:
parent
8d3f0a9f4d
commit
76cb52878c
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue