Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix link opening (#512)

authored by

Paul Frazee and committed by
GitHub
2b962791 af2fd3cf

+9 -3
+7 -2
src/state/models/root-store.ts
··· 119 119 /** 120 120 * Called by the session model. Refreshes session-oriented state. 121 121 */ 122 - async handleSessionChange(agent: BskyAgent) { 122 + async handleSessionChange( 123 + agent: BskyAgent, 124 + {hadSession}: {hadSession: boolean}, 125 + ) { 123 126 this.log.debug('RootStoreModel:handleSessionChange') 124 127 this.agent = agent 125 128 this.me.clear() 126 129 await this.me.load() 127 - resetNavigation() 130 + if (!hadSession) { 131 + resetNavigation() 132 + } 128 133 } 129 134 130 135 /**
+2 -1
src/state/models/session.ts
··· 158 158 */ 159 159 async setActiveSession(agent: BskyAgent, did: string) { 160 160 this._log('SessionModel:setActiveSession') 161 + const hadSession = !!this.data 161 162 this.data = { 162 163 service: agent.service.toString(), 163 164 did, 164 165 } 165 - await this.rootStore.handleSessionChange(agent) 166 + await this.rootStore.handleSessionChange(agent, {hadSession}) 166 167 } 167 168 168 169 /**