not async

This commit is contained in:
Manav Rathi 2025-02-27 12:19:58 +05:30
parent 9c6bfaa460
commit d50391ea13
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -314,7 +314,7 @@ const enqueueUpdates = async (file: EnteFile) => {
await livePhotoSourceURLs.image(), await livePhotoSourceURLs.image(),
); );
const originalImageBlob = const originalImageBlob =
(await livePhotoSourceURLs.originalImageBlob())!; livePhotoSourceURLs.originalImageBlob()!;
const imageData = { const imageData = {
...(await withDimensions(imageURL)), ...(await withDimensions(imageURL)),
imageURL, imageURL,

View File

@ -26,7 +26,7 @@ import { decodeLivePhoto } from "@/media/live-photo";
export interface LivePhotoSourceURL { export interface LivePhotoSourceURL {
image: () => Promise<string | undefined>; image: () => Promise<string | undefined>;
originalImageBlob: () => Promise<Blob | undefined>; originalImageBlob: () => Blob | undefined;
video: () => Promise<string | undefined>; video: () => Promise<string | undefined>;
} }
@ -674,7 +674,7 @@ async function getRenderableLivePhotoURL(
} }
}; };
const getOriginalImageBlob = async () => { const getOriginalImageBlob = () => {
try { try {
return new Blob([livePhoto.imageData]); return new Blob([livePhoto.imageData]);
} catch { } catch {