Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Reuse

Manav Rathieecf4a0932f9
diff --git a/web/apps/photos/src/components/PhotoFrame.tsx b/web/apps/photos/src/components/PhotoFrame.tsx
index 0ab0e067a8..24eee08f5e 100644
--- a/web/apps/photos/src/components/PhotoFrame.tsx
+++ b/web/apps/photos/src/components/PhotoFrame.tsx
@@ -399,22 +399,7 @@ const PhotoFrame = ({
url: imageURL,
type: "normal",
};
- try {
- if (updateSourceURL(index, item.id, dummyImgSrcUrl)) {
- log.info(
- `[${item.id}] calling invalidateCurrItems for live photo imgSrc, source loaded: ${item.isSourceLoaded}`,
- );
- instance.invalidateCurrItems();
- if ((instance as any).isOpen()) {
- instance.updateSize(true);
- }
- }
- } catch (e) {
- log.error(
- "updating photoswipe after for live photo imgSrc update failed",
- e,
- );
- }
+ updateSource(instance, index, item, dummyImgSrcUrl, false);
if (!imageURL) {
// no image url, no need to load video
return;