From c245208106384f91a5416b76a60adc3b7aa6409b Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Aug 2025 21:36:03 -0500 Subject: [PATCH] fix: resume upload on launch (really fix it) (#21106) --- 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 022260f9d9..e5c4bf6efa 100644 --- a/mobile/lib/utils/migration.dart +++ b/mobile/lib/utils/migration.dart @@ -223,14 +223,14 @@ 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}) { ref.read(backupProvider.notifier).cancelBackup(); final backgroundManager = ref.read(backgroundSyncProvider); return Future.wait([ backgroundManager.syncLocal(full: full).then((_) { Logger("runNewSync").fine("Hashing assets after syncLocal"); - backgroundManager.hashAssets(); + return backgroundManager.hashAssets(); }), backgroundManager.syncRemote(), ]);