Rip out the network hack in favor of bluesky-social/atproto#4238

This commit is contained in:
Dan Abramov
2025-09-29 16:56:32 +01:00
parent 7f4e3091f7
commit 3fe5cc1d5e
-8
View File
@@ -321,15 +321,7 @@ class BskyAppAgent extends BskyAgent {
// Now the agent is ready.
const account = agentToSessionAccountOrThrow(this)
let lastSession = this.sessionManager.session
this.persistSessionHandler = event => {
if (this.sessionManager.session) {
lastSession = this.sessionManager.session
} else if (event === 'network-error') {
// Put it back, we'll try again later.
this.sessionManager.session = lastSession
}
onSessionChange(this, account.did, event)
if (event !== 'create' && event !== 'update') {
addSessionErrorLog(account.did, event)