mirror of https://github.com/vector-im/riot-web
tweak code style
parent
ac61c8eca8
commit
2b703e8574
|
@ -201,9 +201,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
const childRoom = this.matrixClient?.getRoom(roomId);
|
const childRoom = this.matrixClient?.getRoom(roomId);
|
||||||
const createTs = childRoom?.currentState.getStateEvents(EventType.RoomCreate, "")?.getTs();
|
const createTs = childRoom?.currentState.getStateEvents(EventType.RoomCreate, "")?.getTs();
|
||||||
return getOrder(ev.getContent().order, createTs, roomId);
|
return getOrder(ev.getContent().order, createTs, roomId);
|
||||||
})
|
}).map(ev => {
|
||||||
.map(ev => this.matrixClient.getRoom(ev.getStateKey()))
|
return this.matrixClient.getRoom(ev.getStateKey());
|
||||||
.filter(room => room?.getMyMembership() === "join" || room?.getMyMembership() === "invite") || [];
|
}).filter(room => {
|
||||||
|
return room?.getMyMembership() === "join" || room?.getMyMembership() === "invite";
|
||||||
|
}) || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public getChildRooms(spaceId: string): Room[] {
|
public getChildRooms(spaceId: string): Room[] {
|
||||||
|
|
Loading…
Reference in New Issue