mirror of https://github.com/vector-im/riot-web
Fix leaving space via other client leaving you in undefined-land
parent
5eaf0e7e25
commit
b84a0300aa
|
@ -608,6 +608,9 @@ 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") {
|
||||||
|
// user's active space has gone away, go back to home
|
||||||
|
this.setActiveSpace(null, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue