mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
refactor: pass through name and favorite updates on iOS
This commit is contained in:
parent
662c2b8749
commit
18cf56bd2e
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue