diff --git a/mobile/lib/domain/services/local_sync.service.dart b/mobile/lib/domain/services/local_sync.service.dart index eb6e265cb0..b87b3edf71 100644 --- a/mobile/lib/domain/services/local_sync.service.dart +++ b/mobile/lib/domain/services/local_sync.service.dart @@ -386,10 +386,15 @@ class LocalSyncService { final firstAdjustment = a.adjustmentTime?.millisecondsSinceEpoch ?? 0; final secondAdjustment = b.adjustmentTime?.millisecondsSinceEpoch ?? 0; return firstAdjustment == secondAdjustment && + a.id == b.id && + a.name == b.name && + a.type == b.type && a.createdAt.isAtSameMomentAs(b.createdAt) && a.width == b.width && a.height == b.height && a.durationMs == b.durationMs && + a.isFavorite == b.isFavorite && + a.playbackStyle == b.playbackStyle && a.latitude == b.latitude && a.longitude == b.longitude; } diff --git a/mobile/test/medium/repositories/local_album_repository_test.dart b/mobile/test/medium/repositories/local_album_repository_test.dart index f71eb9ab7a..6dd4633b0f 100644 --- a/mobile/test/medium/repositories/local_album_repository_test.dart +++ b/mobile/test/medium/repositories/local_album_repository_test.dart @@ -72,7 +72,7 @@ void main() { expect((await assetInDb(asset.id)).checksum, checksum); }); - test('when only the favourite flag changed', () async { + test('when only the favorite flag changed', () async { await sut.upsert(album, toUpsert: [asset.copyWith(isFavorite: true)]); expect((await assetInDb(asset.id)).checksum, checksum); });