Sfoglia il codice sorgente

fix FILE_UPLOADED localFile for live photos

Abhinav 1 anno fa
parent
commit
e6c07cf275
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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');