about summary refs log tree commit diff
path: root/src/state/models/session.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-21 20:28:19 -0500
committerGitHub <noreply@github.com>2023-04-21 20:28:19 -0500
commit2b96279103e0807abc5e7b00d0d3b5369b19b795 (patch)
treebe182c8b60a4c594cea7e9a0dbabb253419fb5ad /src/state/models/session.ts
parentaf2fd3cf29858d1a4f4dafd30fffb168815b34c2 (diff)
downloadvoidsky-2b96279103e0807abc5e7b00d0d3b5369b19b795.tar.zst
Fix link opening (#512)
Diffstat (limited to 'src/state/models/session.ts')
-rw-r--r--src/state/models/session.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/models/session.ts b/src/state/models/session.ts
index 96e058c02..c36537601 100644
--- a/src/state/models/session.ts
+++ b/src/state/models/session.ts
@@ -158,11 +158,12 @@ export class SessionModel {
    */
   async setActiveSession(agent: BskyAgent, did: string) {
     this._log('SessionModel:setActiveSession')
+    const hadSession = !!this.data
     this.data = {
       service: agent.service.toString(),
       did,
     }
-    await this.rootStore.handleSessionChange(agent)
+    await this.rootStore.handleSessionChange(agent, {hadSession})
   }
 
   /**