about summary refs log tree commit diff
path: root/src/state/models
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-21 12:21:38 -0500
committerGitHub <noreply@github.com>2023-04-21 12:21:38 -0500
commit0f5735b616e3565c1c739e4c8007f4ea4aedba92 (patch)
treeb5a8c63415b815988435f291ecd68b672d915126 /src/state/models
parent9f9bd314b34037a02e863df84dd642c2819b3472 (diff)
downloadvoidsky-0f5735b616e3565c1c739e4c8007f4ea4aedba92.tar.zst
Fix profile link 404s on session change & handle change [APP 523] (#507)
* Use DID to link to the user profile to gracefully handle... handle changes

* Reset nav state on active profile change
Diffstat (limited to 'src/state/models')
-rw-r--r--src/state/models/root-store.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts
index b3e744a40..6f919a4bf 100644
--- a/src/state/models/root-store.ts
+++ b/src/state/models/root-store.ts
@@ -21,6 +21,7 @@ import {PreferencesModel} from './ui/preferences'
 import {resetToTab} from '../../Navigation'
 import {ImageSizesCache} from './cache/image-sizes'
 import {MutedThreads} from './muted-threads'
+import {reset as resetNavigation} from '../../Navigation'
 
 export const appInfo = z.object({
   build: z.string(),
@@ -123,6 +124,7 @@ export class RootStoreModel {
     this.agent = agent
     this.me.clear()
     await this.me.load()
+    resetNavigation()
   }
 
   /**