From 39807a86309ccfeeffbd054808c0e78e42ff940e Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 1 May 2024 02:55:43 +0100 Subject: [Session] Refactor to prepare for V2 (#3781) * Move types to another file Co-authored-by: dan * Move utilities out Co-authored-by: dan * Move PUBLIC_BSKY_AGENT Co-authored-by: dan * Move createPersistSessionHandler inline Co-authored-by: dan * Call configureModeration when clearing account too This ensures that the app labelers get reset in a test environment. Co-authored-by: dan * Make guest configureModeration sync, non-guest async * Extract isSessionExpired Co-authored-by: dan * Flip isSessionExpired condition Co-authored-by: dan * Extract agentToSessionAccount Co-authored-by: dan * Extract createAgent* Co-authored-by: dan * Simplify isSessionExpired --------- Co-authored-by: Eric Bailey --- src/App.native.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/App.native.tsx') diff --git a/src/App.native.tsx b/src/App.native.tsx index 4cb963fe8..569f342c2 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -18,7 +18,7 @@ import {useQueryClient} from '@tanstack/react-query' 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 {useNotificationsListener} from 'lib/notifications/notifications' import {QueryProvider} from 'lib/react-query' -- cgit 1.4.1