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

Commit 7c3e743

Browse files
committed
Respect the home page as a context for the Home space
1 parent 35d4ec6 commit 7c3e743

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/stores/spaces/SpaceStore.ts

+7
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,13 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
854854
break;
855855
}
856856

857+
case "view_home_page":
858+
if (this.enabledMetaSpaces.includes(MetaSpace.Home)) {
859+
this.setActiveSpace(MetaSpace.Home, false);
860+
window.localStorage.setItem(getSpaceContextKey(this.activeSpace), "");
861+
}
862+
break;
863+
857864
case "after_leave_room":
858865
if (this._activeSpace[0] === "!" && payload.room_id === this._activeSpace) {
859866
// User has left the current space, go to first space

0 commit comments

Comments
 (0)