tweak code style

pull/21833/head
Michael Telatynski 2021-05-05 17:30:14 +01:00
parent ac61c8eca8
commit 2b703e8574
1 changed files with 5 additions and 3 deletions

View File

@ -201,9 +201,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
const childRoom = this.matrixClient?.getRoom(roomId);
const createTs = childRoom?.currentState.getStateEvents(EventType.RoomCreate, "")?.getTs();
return getOrder(ev.getContent().order, createTs, roomId);
})
.map(ev => this.matrixClient.getRoom(ev.getStateKey()))
.filter(room => room?.getMyMembership() === "join" || room?.getMyMembership() === "invite") || [];
}).map(ev => {
return this.matrixClient.getRoom(ev.getStateKey());
}).filter(room => {
return room?.getMyMembership() === "join" || room?.getMyMembership() === "invite";
}) || [];
}
public getChildRooms(spaceId: string): Room[] {