[Fix Logouts] Remove buggy hackfix (#9108)

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

* Bump api pkg

* Debug code

* Revert "Debug code"

This reverts commit 38445f31f4.

---------

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
dan
2025-10-02 20:01:10 +01:00
committed by GitHub
parent 77bf49f212
commit 1354fd2661
3 changed files with 44 additions and 9 deletions
-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)