Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Respect the home page as a context for the Home space #7216

Merged
merged 2 commits into from
Nov 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/stores/spaces/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,13 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
break;
}

case "view_home_page":
if (this.enabledMetaSpaces.includes(MetaSpace.Home)) {
this.setActiveSpace(MetaSpace.Home, false);
window.localStorage.setItem(getSpaceContextKey(this.activeSpace), "");
germain-gg marked this conversation as resolved.
Show resolved Hide resolved
}
break;

case "after_leave_room":
if (this._activeSpace[0] === "!" && payload.room_id === this._activeSpace) {
// User has left the current space, go to first space
Expand Down