mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-01 11:51:41 +02:00
Fix leaving space via other client leaving you in undefined-land
This commit is contained in:
parent
5eaf0e7e25
commit
b84a0300aa
@ -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") {
|
||||
// user's active space has gone away, go back to home
|
||||
this.setActiveSpace(null, true);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user