mirror of https://github.com/vector-im/riot-web
Check if we are joined
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
08c0f0a67e
commit
f9292c364c
|
@ -118,7 +118,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
const spaceId = space?.roomId || LAST_VIEWED_ROOMS_HOME;
|
const spaceId = space?.roomId || LAST_VIEWED_ROOMS_HOME;
|
||||||
const roomId = window.localStorage.getItem(`${LAST_VIEWED_ROOMS}_${spaceId}`);
|
const roomId = window.localStorage.getItem(`${LAST_VIEWED_ROOMS}_${spaceId}`);
|
||||||
|
|
||||||
if (roomId) {
|
if (roomId && this.matrixClient.getRoom(roomId).getMyMembership() === "join") {
|
||||||
defaultDispatcher.dispatch({
|
defaultDispatcher.dispatch({
|
||||||
action: "view_room",
|
action: "view_room",
|
||||||
room_id: roomId,
|
room_id: roomId,
|
||||||
|
|
Loading…
Reference in New Issue