mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Fix invites relating to a space not showing in the space
This commit is contained in:
parent
c35678c64a
commit
320ff7b870
@ -195,7 +195,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||||||
const childEvents = room?.currentState.getStateEvents(EventType.SpaceChild).filter(ev => ev.getContent()?.via);
|
const childEvents = room?.currentState.getStateEvents(EventType.SpaceChild).filter(ev => ev.getContent()?.via);
|
||||||
return sortBy(childEvents, getOrder)
|
return sortBy(childEvents, getOrder)
|
||||||
.map(ev => this.matrixClient.getRoom(ev.getStateKey()))
|
.map(ev => this.matrixClient.getRoom(ev.getStateKey()))
|
||||||
.filter(room => room?.getMyMembership() === "join") || [];
|
.filter(room => room?.getMyMembership() === "join" || room?.getMyMembership() === "invite") || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public getChildRooms(spaceId: string): Room[] {
|
public getChildRooms(spaceId: string): Room[] {
|
||||||
|
Loading…
Reference in New Issue
Block a user