diff --git a/src/room-hierarchy.ts b/src/room-hierarchy.ts index 93b04dd0db3..16b6014ea60 100644 --- a/src/room-hierarchy.ts +++ b/src/room-hierarchy.ts @@ -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, @@ -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; }