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:
shenlong 2025-07-30 08:27:04 +05:30 committed by GitHub
parent 07ed060c32
commit 268b411a6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 30 additions and 8 deletions

View file

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