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(),
);
const originalImageBlob =
(await livePhotoSourceURLs.originalImageBlob())!;
livePhotoSourceURLs.originalImageBlob()!;
const imageData = {
...(await withDimensions(imageURL)),
imageURL,

View File

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