Skip to content

armgit / ente

Public Imported from GitHub
0

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

remove unused function

Anand Baburajan1f0d2793f410
diff --git a/web/packages/new/albums/services/join-album.ts b/web/packages/new/albums/services/join-album.ts
index fe59093c22..ada19ff72a 100644
--- a/web/packages/new/albums/services/join-album.ts
+++ b/web/packages/new/albums/services/join-album.ts
@@ -24,42 +24,6 @@ export interface JoinAlbumContext {
accessTokenJWT?: string; // JWT token for password-protected albums
}
-/**
- * Store the album context before redirecting to auth.
- * This preserves the album information across the authentication flow.
- */
-export const storeJoinAlbumContext = async (
- accessToken: string,
- collectionKey: string,
- collectionKeyHash: string,
- collection: Collection,
-) => {
- // Import the function to get saved JWT token for password-protected albums
- const { savedPublicCollectionAccessTokenJWT } = await import(
- "./public-albums-fdb"
- );
-
- // Get the JWT token if this is a password-protected album
- const accessTokenJWT =
- await savedPublicCollectionAccessTokenJWT(accessToken);
-
- const context: JoinAlbumContext = {
- accessToken,
- collectionKey,
- collectionKeyHash,
- collectionID: collection.id,
- };
-
- // Add JWT token if present
- if (accessTokenJWT) {
- context.accessTokenJWT = accessTokenJWT;
- }
-
- const serializedContext = JSON.stringify(context);
-
- sessionStorage.setItem(JOIN_ALBUM_CONTEXT_KEY, serializedContext);
-};
-
/**
* Retrieve stored album context after authentication.
* Checks sessionStorage for the stored context.