Skip to content

armgit / ente

Public Imported from GitHub
0

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

Clear join-album intent after failures

Anand Baburajan8b750e40e3a3
diff --git a/web/packages/new/albums/services/join-album.ts b/web/packages/new/albums/services/join-album.ts
index bd0818251f..4b6d2ca3fd 100644
--- a/web/packages/new/albums/services/join-album.ts
+++ b/web/packages/new/albums/services/join-album.ts
@@ -157,11 +157,12 @@ export const processPendingAlbumJoin = async (): Promise<number | null> => {
);
// Clear the context after successful join
- // Note: If any error occurs above, this won't execute and context will be preserved for retry
clearJoinAlbumContext();
return collectionID;
} catch (error) {
+ // Clear the context on failure to avoid repeated attempts
+ clearJoinAlbumContext();
log.error("Failed to process pending album join", {
collectionID: context.collectionID,
error,