Skip to content

armgit / ente

Public Imported from GitHub
0

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

Retain order

Manav Rathi52d5ab31aaae
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 980c62348a..241f31fe15 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -342,10 +342,6 @@ export default function PublicCollectionGallery() {
savePublicCollectionPassword(collectionUID, null);
}
- if (isPasswordProtected && !credentials.current.accessTokenJWT) {
- await removePublicFiles(collectionUID);
- }
-
if (
!isPasswordProtected ||
(isPasswordProtected && credentials.current.accessTokenJWT)
@@ -369,6 +365,10 @@ export default function PublicCollectionGallery() {
}
}
}
+
+ if (isPasswordProtected && !credentials.current.accessTokenJWT) {
+ await removePublicFiles(collectionUID);
+ }
} catch (e) {
const parsedError = parseSharingErrorCodes(e);
if (