Skip to content

Commit

Permalink
fix(mobile): device album sync (immich-app#13116)
Browse files Browse the repository at this point in the history
  • Loading branch information
fyfrey authored and Yosi Taguri committed Oct 3, 2024
1 parent 8d93419 commit 90ea744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/lib/services/sync.service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 90ea744

Please sign in to comment.