Test and fix subspace invite receipt behaviour

This commit is contained in:
Michael Telatynski 2021-04-24 11:31:52 +01:00
parent dd2a1d063a
commit f85d3643ee
2 changed files with 13 additions and 1 deletions

View file

@ -203,7 +203,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
}
public getChildSpaces(spaceId: string): Room[] {
return this.getChildren(spaceId).filter(r => r.isSpaceRoom());
// don't show invited subspaces as they surface at the top level for better visibility
return this.getChildren(spaceId).filter(r => r.isSpaceRoom() && r.getMyMembership() === "join");
}
public getParents(roomId: string, canonicalOnly = false): Room[] {