Check if we are joined

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-20 12:25:56 +02:00
parent 08c0f0a67e
commit f9292c364c
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 1 deletions

View File

@ -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,