fix: mitigate database lock scenario when running full sync in splash screen page (#22608)

This commit is contained in:
Alex 2025-10-03 08:27:28 -05:00 committed by Chaoscontrol
parent 7cdaef08cc
commit d56893bfd3

View file

@ -64,7 +64,7 @@ class SplashScreenPageState extends ConsumerState<SplashScreenPage> {
if (Store.isBetaTimelineEnabled) { if (Store.isBetaTimelineEnabled) {
bool syncSuccess = false; bool syncSuccess = false;
await Future.wait([ await Future.wait([
backgroundManager.syncLocal(full: true), backgroundManager.syncLocal(),
backgroundManager.syncRemote().then((success) => syncSuccess = success), backgroundManager.syncRemote().then((success) => syncSuccess = success),
]); ]);