Prompt user to leave rooms/subspaces in a space when leaving space
This commit is contained in:
parent
364bee9ebd
commit
1b2d70d816
10 changed files with 395 additions and 36 deletions
|
@ -222,7 +222,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||
}, roomId);
|
||||
}
|
||||
|
||||
private getChildren(spaceId: string): Room[] {
|
||||
public getChildren(spaceId: string): Room[] {
|
||||
const room = this.matrixClient?.getRoom(spaceId);
|
||||
const childEvents = room?.currentState.getStateEvents(EventType.SpaceChild).filter(ev => ev.getContent()?.via);
|
||||
return sortBy(childEvents, ev => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue