diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-21 20:28:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 20:28:19 -0500 |
commit | 2b96279103e0807abc5e7b00d0d3b5369b19b795 (patch) | |
tree | be182c8b60a4c594cea7e9a0dbabb253419fb5ad /src/state/models/root-store.ts | |
parent | af2fd3cf29858d1a4f4dafd30fffb168815b34c2 (diff) | |
download | voidsky-2b96279103e0807abc5e7b00d0d3b5369b19b795.tar.zst |
Fix link opening (#512)
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r-- | src/state/models/root-store.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts index 6f919a4bf..8cd23efcd 100644 --- a/src/state/models/root-store.ts +++ b/src/state/models/root-store.ts @@ -119,12 +119,17 @@ export class RootStoreModel { /** * Called by the session model. Refreshes session-oriented state. */ - async handleSessionChange(agent: BskyAgent) { + async handleSessionChange( + agent: BskyAgent, + {hadSession}: {hadSession: boolean}, + ) { this.log.debug('RootStoreModel:handleSessionChange') this.agent = agent this.me.clear() await this.me.load() - resetNavigation() + if (!hadSession) { + resetNavigation() + } } /** |