Skip to content

Commit

Permalink
Merge pull request #1968 from matrix-org/t3chguy/fix/19276
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Oct 6, 2021
2 parents c9212e7 + 13c8774 commit 29bc83f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/room-hierarchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class RoomHierarchy {
* @constructor
*/
constructor(
private readonly root: Room,
public readonly root: Room,
private readonly pageSize?: number,
private readonly maxDepth?: number,
private readonly suggestedOnly = false,
Expand All @@ -61,6 +61,10 @@ export class RoomHierarchy {
return !!this.serverSupportError || !!this.nextBatch || !this._rooms;
}

public get loading(): boolean {
return !!this.loadRequest;
}

public get rooms(): IHierarchyRoom[] {
return this._rooms;
}
Expand Down

0 comments on commit 29bc83f

Please sign in to comment.