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

Commit

Permalink
Respect the home page as a context for the Home space
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Nov 29, 2021
1 parent 35d4ec6 commit 7c3e743
Showing 1 changed file with 7 additions and 0 deletions.
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), "");
}
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

0 comments on commit 7c3e743

Please sign in to comment.