From e568261c6d6a9d9d282a75bc34fabb9a11060a6a Mon Sep 17 00:00:00 2001 From: Rushikesh Tote Date: Wed, 22 Jun 2022 11:44:45 +0530 Subject: [PATCH] fix live photo magic metadata --- src/services/upload/livePhotoService.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/services/upload/livePhotoService.ts b/src/services/upload/livePhotoService.ts index 7fbf44a2b..80b84e4f3 100644 --- a/src/services/upload/livePhotoService.ts +++ b/src/services/upload/livePhotoService.ts @@ -1,6 +1,7 @@ import { FILE_TYPE } from 'constants/file'; import { LIVE_PHOTO_ASSET_SIZE_LIMIT } from 'constants/upload'; import { encodeMotionPhoto } from 'services/motionPhotoService'; +import { NEW_FILE_MAGIC_METADATA } from 'types/magicMetadata'; import { ElectronFile, FileTypeInfo, @@ -192,6 +193,15 @@ export function clusterLivePhotoFiles(mediaFiles: FileWithCollection[]) { uploadService.setFileMetadataAndFileTypeInfo(livePhotoLocalID, { fileTypeInfo: { ...livePhotoFileTypeInfo }, metadata: { ...livePhotoMetadata }, + magicMetadata: { + ...NEW_FILE_MAGIC_METADATA, + data: { + filePaths: [ + (firstMediaFile.file as any).path as string, + (secondMediaFile.file as any).path as string, + ], + }, + }, }); index += 2; } else {