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

Commit 273a895

Browse files
committed
fix logic
1 parent b84a030 commit 273a895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/SpaceStore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ 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") {
611+
} else if (membership === "leave" && room.roomId === this.activeSpace?.roomId) {
612612
// user's active space has gone away, go back to home
613613
this.setActiveSpace(null, true);
614614
}

0 commit comments

Comments
 (0)