From f463bd18efc702fe97132f953275f1691e634a9c Mon Sep 17 00:00:00 2001 From: Fynn Petersen-Frey <10599762+fyfrey@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:09:34 +0200 Subject: [PATCH] fix(mobile): device album sync (#13116) --- mobile/lib/services/sync.service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 onDevice, [ Set? 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 deleteCandidates = [];