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

This commit is contained in:
Fynn Petersen-Frey 2024-10-02 15:09:34 +02:00 committed by GitHub
parent 6c7d51da34
commit f463bd18ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [];