From 439f1ff0fb8efa69cf60859c219b714afa46402a Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 2 May 2025 16:09:44 +0530 Subject: [PATCH] keep reference to collectionFileEntry --- mobile/lib/models/file/file.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/lib/models/file/file.dart b/mobile/lib/models/file/file.dart index 560a8b7a44..81be2941eb 100644 --- a/mobile/lib/models/file/file.dart +++ b/mobile/lib/models/file/file.dart @@ -22,6 +22,7 @@ import 'package:photos/utils/standalone/date_time.dart'; class EnteFile { AssetEntity? asset; RemoteAsset? remoteAsset; + CollectionFileEntry? fileEntry; int? generatedID; int? uploadedFileID; int? ownerID; @@ -115,6 +116,7 @@ class EnteFile { ) { final EnteFile file = EnteFile(); file.remoteAsset = asset; + file.fileEntry = collection; file.uploadedFileID = asset.id; file.ownerID = asset.ownerID; file.title = asset.title; @@ -127,6 +129,7 @@ class EnteFile { file.metadataVersion = kCurrentMetadataVersion; file.duration = asset.durationInSec; file.fileSize = asset.fileSize; + file.collectionID = collection.collectionID; file.encryptedKey = CryptoUtil.bin2base64(collection.fileKey); file.keyDecryptionNonce = CryptoUtil.bin2base64(collection.fileKeyNonce);