Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): device album sync (#13116)

Fynn Petersen-Freyf463bd18efc7
diff --git a/mobile/lib/services/sync.service.dart b/mobile/lib/services/sync.service.dart
index e23c2d1b1b..658bffc44f 100644
--- a/mobile/lib/services/sync.service.dart
+++ b/mobile/lib/services/sync.service.dart
@@ -507,7 +507,7 @@ class SyncService {
List<Album> onDevice, [
Set<String>? excludedAssets,
]) async {
- onDevice.sort((a, b) => a.id.compareTo(b.id));
+ onDevice.sort((a, b) => a.localId!.compareTo(b.localId!));
final inDb =
await _albumRepository.getAll(remote: false, sortBy: AlbumSort.localId);
final List<Asset> deleteCandidates = [];