about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-01 02:55:43 +0100
committerGitHub <noreply@github.com>2024-05-01 02:55:43 +0100
commit39807a86309ccfeeffbd054808c0e78e42ff940e (patch)
tree43e5bd4d79c127aad384317ce177bbec70a6ec06 /src/App.web.tsx
parent66ad5543f1fb74c8e75edba7d626cdeeb8297d44 (diff)
downloadvoidsky-39807a86309ccfeeffbd054808c0e78e42ff940e.tar.zst
[Session] Refactor to prepare for V2 (#3781)
* Move types to another file

Co-authored-by: dan <dan.abramov@gmail.com>

* Move utilities out

Co-authored-by: dan <dan.abramov@gmail.com>

* Move PUBLIC_BSKY_AGENT

Co-authored-by: dan <dan.abramov@gmail.com>

* Move createPersistSessionHandler inline

Co-authored-by: dan <dan.abramov@gmail.com>

* Call configureModeration when clearing account too

This ensures that the app labelers get reset in a test environment.

Co-authored-by: dan <dan.abramov@gmail.com>

* Make guest configureModeration sync, non-guest async

* Extract isSessionExpired

Co-authored-by: dan <dan.abramov@gmail.com>

* Flip isSessionExpired condition

Co-authored-by: dan <dan.abramov@gmail.com>

* Extract agentToSessionAccount

Co-authored-by: dan <dan.abramov@gmail.com>

* Extract createAgent*

Co-authored-by: dan <dan.abramov@gmail.com>

* Simplify isSessionExpired

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 639fbfafc..226fb8d3f 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -8,7 +8,7 @@ import {SafeAreaProvider} from 'react-native-safe-area-context'
 import {Provider as StatsigProvider} from '#/lib/statsig/statsig'
 import {init as initPersistedState} from '#/state/persisted'
 import {Provider as LabelDefsProvider} from '#/state/preferences/label-defs'
-import {readLastActiveAccount} from '#/state/session/util/readLastActiveAccount'
+import {readLastActiveAccount} from '#/state/session/util'
 import {useIntentHandler} from 'lib/hooks/useIntentHandler'
 import {QueryProvider} from 'lib/react-query'
 import {ThemeProvider} from 'lib/ThemeContext'