mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
fix logic
This commit is contained in:
parent
b84a0300aa
commit
273a895caa
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
if (membership === "join" && room.roomId === RoomViewStore.getRoomId()) {
|
if (membership === "join" && room.roomId === RoomViewStore.getRoomId()) {
|
||||||
// if the user was looking at the space and then joined: select that space
|
// if the user was looking at the space and then joined: select that space
|
||||||
this.setActiveSpace(room, false);
|
this.setActiveSpace(room, false);
|
||||||
} else if (membership === "leave") {
|
} else if (membership === "leave" && room.roomId === this.activeSpace?.roomId) {
|
||||||
// user's active space has gone away, go back to home
|
// user's active space has gone away, go back to home
|
||||||
this.setActiveSpace(null, true);
|
this.setActiveSpace(null, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue