tweak code style
This commit is contained in:
parent
ac61c8eca8
commit
2b703e8574
1 changed files with 5 additions and 3 deletions
|
@ -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 a new issue