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

Tweak Room Hierarchy root visibility and add loading getter

This commit is contained in:
Michael Telatynski
2021-10-06 10:25:27 +01:00
parent 823242a93c
commit 13c8774d45

View File

@@ -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;
}