about summary refs log tree commit diff
path: root/src/state/models/root-store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r--src/state/models/root-store.ts9
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()
+    }
   }
 
   /**