HomePhabricator
Diffusion Comm 981f07ef5778

[native] Add `messageStoreLoaded` to `SQLiteContext`

Description

[native] Add messageStoreLoaded to SQLiteContext

Summary:
We use SQLiteContext to determine whether the state persisted in SQLite has been loaded.

For example, in app-navigator, we won't render within App.Navigator until storeLoadedFromLocalDatabase is true.


Depends on D4158

Test Plan:
We're manually setting messageStoreLoaded to true in SQLiteContextProvider for persistConfig.version < 31 (the migration which "flips the switch") for now.

The app should continue to work as expected without issue. Specifically, will deploy a release build to my phone and open/force quit/open/etc the app a couple times and make sure things continue to work as expected.

Reviewers: def-au1t, palys-swm

Reviewed By: palys-swm

Subscribers: ashoat, Adrian, yayabosh

Differential Revision: https://phabricator.ashoat.com/D4159

Details

Provenance
atulAuthored on May 31 2022, 6:17 AM
Reviewer
tomek
Differential Revision
D4159: [native] Add `messageStoreLoaded` to `SQLiteContext`
Parents
rCOMM02a01cd0f0b7: [native] Remove `setThreadStoreLoaded(true)` early return in…
Branches
Unknown
Tags
Unknown