refactor: pass through name and favorite updates on iOS

This commit is contained in:
shenlong-tanwen 2026-08-09 13:49:40 +05:30
parent 662c2b8749
commit 18cf56bd2e
2 changed files with 6 additions and 1 deletions

View file

@ -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;
}

View file

@ -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);
});