diff options
author | Frudrax Cheng <i@cynosura.one> | 2024-06-18 09:11:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 09:11:53 +0800 |
commit | 7548c23f19d0cf8e9230fa75ad5d1d73fe471a7d (patch) | |
tree | 3433af3806f1e89f5d917bd92086dd9ab63355df /src/App.native.tsx | |
parent | b4e4c15fbbf1fc1ef2001ee78f70c461b39b1dc4 (diff) | |
parent | 077da0830924d4c040ef095d8349f13fdfdf4372 (diff) | |
download | voidsky-7548c23f19d0cf8e9230fa75ad5d1d73fe471a7d.tar.zst |
Merge branch 'bluesky-social:main' into zh
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 5b2071e10..322e944a4 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -14,7 +14,11 @@ import * as SplashScreen from 'expo-splash-screen' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {Provider as StatsigProvider} from '#/lib/statsig/statsig' +import { + initialize, + Provider as StatsigProvider, + tryFetchGates, +} from '#/lib/statsig/statsig' import {logger} from '#/logger' import {MessagesProvider} from '#/state/messages' import {init as initPersistedState} from '#/state/persisted' @@ -69,6 +73,9 @@ function InnerApp() { try { if (account) { await resumeSession(account) + } else { + await initialize() + await tryFetchGates(undefined, 'prefer-fresh-gates') } } catch (e) { logger.error(`session: resume failed`, {message: e}) |