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

Commit 5dede23

Browse files
authored
Merge pull request #6891 from matrix-org/t3chguy/fix/18455
2 parents 616dfae + 273a895 commit 5dede23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/stores/SpaceStore.ts

+3
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
608608
if (membership === "join" && room.roomId === RoomViewStore.getRoomId()) {
609609
// if the user was looking at the space and then joined: select that space
610610
this.setActiveSpace(room, false);
611+
} else if (membership === "leave" && room.roomId === this.activeSpace?.roomId) {
612+
// user's active space has gone away, go back to home
613+
this.setActiveSpace(null, true);
611614
}
612615
};
613616

0 commit comments

Comments
 (0)