Skip to content

Commit 1354fd2

Browse files
[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 38445f3. --------- Co-authored-by: Eric Bailey <[email protected]>
1 parent 77bf49f commit 1354fd2

File tree

3 files changed

+44
-9
lines changed

3 files changed

+44
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"icons:optimize": "svgo -f ./assets/icons"
7272
},
7373
"dependencies": {
74-
"@atproto/api": "^0.16.7",
74+
"@atproto/api": "^0.17.0",
7575
"@bitdrift/react-native": "^0.6.8",
7676
"@braintree/sanitize-url": "^6.0.2",
7777
"@bsky.app/alf": "^0.1.2",

src/state/session/agent.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,7 @@ class BskyAppAgent extends BskyAgent {
321321

322322
// Now the agent is ready.
323323
const account = agentToSessionAccountOrThrow(this)
324-
let lastSession = this.sessionManager.session
325324
this.persistSessionHandler = event => {
326-
if (this.sessionManager.session) {
327-
lastSession = this.sessionManager.session
328-
} else if (event === 'network-error') {
329-
// Put it back, we'll try again later.
330-
this.sessionManager.session = lastSession
331-
}
332-
333325
onSessionChange(this, account.did, event)
334326
if (event !== 'create' && event !== 'update') {
335327
addSessionErrorLog(account.did, event)

yarn.lock

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@
7777
tlds "^1.234.0"
7878
zod "^3.23.8"
7979

80+
"@atproto/api@^0.17.0":
81+
version "0.17.0"
82+
resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.17.0.tgz#1fe87ef703f8020dbe00bb5e5cc18622b8b91f4a"
83+
integrity sha512-FNS9SW7/3kslAnJH7F4fO9/jPjXzC0NMD6u9NjJ/h4EnaIEpWHZQPkmD9Q2hvAwD6+Uo2boYZEPKkOa55Lr5Dg==
84+
dependencies:
85+
"@atproto/common-web" "^0.4.3"
86+
"@atproto/lexicon" "^0.5.1"
87+
"@atproto/syntax" "^0.4.1"
88+
"@atproto/xrpc" "^0.7.5"
89+
await-lock "^2.2.2"
90+
multiformats "^9.9.0"
91+
tlds "^1.234.0"
92+
zod "^3.23.8"
93+
8094
"@atproto/aws@^0.2.28":
8195
version "0.2.28"
8296
resolved "https://registry.yarnpkg.com/@atproto/aws/-/aws-0.2.28.tgz#17bd88a6276e323ebb094a3f01bd94b1173a29a4"
@@ -170,6 +184,16 @@
170184
uint8arrays "3.0.0"
171185
zod "^3.23.8"
172186

187+
"@atproto/common-web@^0.4.3":
188+
version "0.4.3"
189+
resolved "https://registry.yarnpkg.com/@atproto/common-web/-/common-web-0.4.3.tgz#b4480220b5682db09da45f4ef906eb7619c838b5"
190+
integrity sha512-nRDINmSe4VycJzPo6fP/hEltBcULFxt9Kw7fQk6405FyAWZiTluYHlXOnU7GkQfeUK44OENG1qFTBcmCJ7e8pg==
191+
dependencies:
192+
graphemer "^1.4.0"
193+
multiformats "^9.9.0"
194+
uint8arrays "3.0.0"
195+
zod "^3.23.8"
196+
173197
"@atproto/[email protected]":
174198
version "0.1.0"
175199
resolved "https://registry.yarnpkg.com/@atproto/common/-/common-0.1.0.tgz#4216a8fef5b985ab62ac21252a0f8ca0f4a0f210"
@@ -303,6 +327,17 @@
303327
multiformats "^9.9.0"
304328
zod "^3.23.8"
305329

330+
"@atproto/lexicon@^0.5.1":
331+
version "0.5.1"
332+
resolved "https://registry.yarnpkg.com/@atproto/lexicon/-/lexicon-0.5.1.tgz#e9b7d5c70dc5a38518a8069cd80fea77ab526947"
333+
integrity sha512-y8AEtYmfgVl4fqFxqXAeGvhesiGkxiy3CWoJIfsFDDdTlZUC8DFnZrYhcqkIop3OlCkkljvpSJi1hbeC1tbi8A==
334+
dependencies:
335+
"@atproto/common-web" "^0.4.3"
336+
"@atproto/syntax" "^0.4.1"
337+
iso-datestring-validator "^2.2.2"
338+
multiformats "^9.9.0"
339+
zod "^3.23.8"
340+
306341
"@atproto/[email protected]":
307342
version "0.3.0"
308343
resolved "https://registry.yarnpkg.com/@atproto/oauth-provider-api/-/oauth-provider-api-0.3.0.tgz#c53a6f2584e6e53746b6cdf233be591fdf7d4355"
@@ -516,6 +551,14 @@
516551
"@atproto/lexicon" "^0.5.0"
517552
zod "^3.23.8"
518553

554+
"@atproto/xrpc@^0.7.5":
555+
version "0.7.5"
556+
resolved "https://registry.yarnpkg.com/@atproto/xrpc/-/xrpc-0.7.5.tgz#40cef1a657b5f28af8ebec9e3dac5872e58e88ea"
557+
integrity sha512-MUYNn5d2hv8yVegRL0ccHvTHAVj5JSnW07bkbiaz96UH45lvYNRVwt44z+yYVnb0/mvBzyD3/ZQ55TRGt7fHkA==
558+
dependencies:
559+
"@atproto/lexicon" "^0.5.1"
560+
zod "^3.23.8"
561+
519562
"@aws-crypto/[email protected]":
520563
version "3.0.0"
521564
resolved "https://registry.yarnpkg.com/@aws-crypto/crc32/-/crc32-3.0.0.tgz#07300eca214409c33e3ff769cd5697b57fdd38fa"

0 commit comments

Comments
 (0)