Browse Source

fix FILE_UPLOADED localFile for live photos

Abhinav 1 year ago
parent
commit
e6c07cf275
1 changed files with 3 additions and 1 deletions
  1. 3 1
      apps/photos/src/services/upload/uploadManager.ts

+ 3 - 1
apps/photos/src/services/upload/uploadManager.ts

@@ -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');