don't bother awaiting SpaceStore::setActiveSpace as it is no longer async

This commit is contained in:
Michael Telatynski 2021-08-31 17:03:43 +01:00
parent bf4ffa965c
commit bbd420096b
3 changed files with 42 additions and 42 deletions

View file

@ -145,9 +145,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
return this._allRoomsInHome;
}
public async setActiveRoomInSpace(space: Room | null): Promise<void> {
public setActiveRoomInSpace(space: Room | null): void {
if (space && !space.isSpaceRoom()) return;
if (space !== this.activeSpace) await this.setActiveSpace(space);
if (space !== this.activeSpace) this.setActiveSpace(space);
if (space) {
const roomId = this.getNotificationState(space.roomId).getFirstRoomWithNotifications();