Check if we are joined
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
08c0f0a67e
commit
f9292c364c
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||
const spaceId = space?.roomId || LAST_VIEWED_ROOMS_HOME;
|
||||
const roomId = window.localStorage.getItem(`${LAST_VIEWED_ROOMS}_${spaceId}`);
|
||||
|
||||
if (roomId) {
|
||||
if (roomId && this.matrixClient.getRoom(roomId).getMyMembership() === "join") {
|
||||
defaultDispatcher.dispatch({
|
||||
action: "view_room",
|
||||
room_id: roomId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue