Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

[Session] Reset global agent on expire (#3838)

authored by

dan and committed by
GitHub
1e484c63 cdf7a195

+11 -6
+11 -6
src/state/session/index.tsx
··· 145 145 if (expired) { 146 146 logger.warn(`session: expired`) 147 147 emitSessionDropped() 148 + __globalAgent = PUBLIC_BSKY_AGENT 149 + configureModerationForGuest() 150 + setState(s => ({ 151 + accounts: s.accounts, 152 + currentAgentState: { 153 + agent: PUBLIC_BSKY_AGENT, 154 + did: undefined, 155 + }, 156 + needsPersist: true, 157 + })) 148 158 } 149 159 150 160 /* ··· 175 185 refreshedAccount, 176 186 ...s.accounts.filter(a => a.did !== refreshedAccount.did), 177 187 ], 178 - currentAgentState: expired 179 - ? { 180 - agent: PUBLIC_BSKY_AGENT, 181 - did: undefined, 182 - } 183 - : s.currentAgentState, 188 + currentAgentState: s.currentAgentState, 184 189 needsPersist: true, 185 190 } 186 191 })