diff options
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() + } } /** |