fix FILE_UPLOADED localFile for live photos

This commit is contained in:
Abhinav 2024-01-23 10:26:01 +05:30
parent 96875eaa76
commit e6c07cf275

View file

@ -361,7 +361,9 @@ class UploadManager {
try {
eventBus.emit(Events.FILE_UPLOADED, {
enteFile: decryptedFile,
localFile: fileWithCollection.file,
localFile:
fileWithCollection.file ??
fileWithCollection.livePhotoAssets.image,
});
} catch (e) {
logError(e, 'Error in fileUploaded handlers');