mirror of
https://github.com/immich-app/immich.git
synced 2025-11-20 21:02:34 +09: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:
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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user