Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6891 from matrix-org/t3chguy/fix/18455
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Oct 1, 2021
2 parents 616dfae + 273a895 commit 5dede23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stores/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
if (membership === "join" && room.roomId === RoomViewStore.getRoomId()) {
// if the user was looking at the space and then joined: select that space
this.setActiveSpace(room, false);
} else if (membership === "leave" && room.roomId === this.activeSpace?.roomId) {
// user's active space has gone away, go back to home
this.setActiveSpace(null, true);
}
};

Expand Down

0 comments on commit 5dede23

Please sign in to comment.