Skip to content

High performance self-hosted photo and video management solution.

fix: resume upload on launch (really fix it) (#21106)

Alexc24520810638
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<List<void>> runNewSync(WidgetRef ref, {bool full = false}) async {
+Future<List<void>> 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(),
]);