High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: improvements to sync and upload when resuming app (#20524)
Zack Pollard278668b8c5c9
diff --git a/mobile/lib/providers/app_life_cycle.provider.dart b/mobile/lib/providers/app_life_cycle.provider.dartindex 31342bf23e..0696a8d7f1 100644--- a/mobile/lib/providers/app_life_cycle.provider.dart+++ b/mobile/lib/providers/app_life_cycle.provider.dart@@ -86,11 +86,12 @@ class AppLifeCycleNotifier extends StateNotifier<AppLifeCycleEnum> {// Ensure proper cleanup before starting new background taskstry {await Future.wait([- backgroundManager.syncLocal().then((_) {+ Future(() async {+ await backgroundManager.syncLocal();Logger("AppLifeCycleNotifier").fine("Hashing assets after syncLocal");// Check if app is still active before hashing- if (state == AppLifeCycleEnum.resumed) {- backgroundManager.hashAssets();+ if ([AppLifeCycleEnum.resumed, AppLifeCycleEnum.active].contains(state)) {+ await backgroundManager.hashAssets();}}),backgroundManager.syncRemote(),