mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: sync is_favorite from native (#20412)
* feat: sync is_favorite from native * handle favorite during upload * Update mobile/ios/Runner/Sync/MessagesImpl.swift Co-authored-by: Alex <alex.tran1502@gmail.com> --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
07ed060c32
commit
268b411a6f
9 changed files with 30 additions and 8 deletions
6
mobile/lib/platform/native_sync_api.g.dart
generated
6
mobile/lib/platform/native_sync_api.g.dart
generated
|
|
@ -40,6 +40,7 @@ class PlatformAsset {
|
|||
this.height,
|
||||
required this.durationInSeconds,
|
||||
required this.orientation,
|
||||
required this.isFavorite,
|
||||
});
|
||||
|
||||
String id;
|
||||
|
|
@ -60,8 +61,10 @@ class PlatformAsset {
|
|||
|
||||
int orientation;
|
||||
|
||||
bool isFavorite;
|
||||
|
||||
List<Object?> _toList() {
|
||||
return <Object?>[id, name, type, createdAt, updatedAt, width, height, durationInSeconds, orientation];
|
||||
return <Object?>[id, name, type, createdAt, updatedAt, width, height, durationInSeconds, orientation, isFavorite];
|
||||
}
|
||||
|
||||
Object encode() {
|
||||
|
|
@ -80,6 +83,7 @@ class PlatformAsset {
|
|||
height: result[6] as int?,
|
||||
durationInSeconds: result[7]! as int,
|
||||
orientation: result[8]! as int,
|
||||
isFavorite: result[9]! as bool,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue