From 8c1b630a2bdb25fc38f06d448c6e9cbfe688bd2d Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 14 Aug 2025 17:09:32 -0500 Subject: [PATCH] fix: backup resume more reliable on app start up (#20907) --- mobile/lib/utils/migration.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/lib/utils/migration.dart b/mobile/lib/utils/migration.dart index 609b3cfca8..022260f9d9 100644 --- a/mobile/lib/utils/migration.dart +++ b/mobile/lib/utils/migration.dart @@ -223,11 +223,11 @@ class _DeviceAsset { const _DeviceAsset({required this.assetId, this.hash, this.dateTime}); } -Future runNewSync(WidgetRef ref, {bool full = false}) async { +Future> runNewSync(WidgetRef ref, {bool full = false}) async { ref.read(backupProvider.notifier).cancelBackup(); final backgroundManager = ref.read(backgroundSyncProvider); - Future.wait([ + return Future.wait([ backgroundManager.syncLocal(full: full).then((_) { Logger("runNewSync").fine("Hashing assets after syncLocal"); backgroundManager.hashAssets();