Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(collection):adding-comments-for-new-updates

Aswin Asokacb67d96f953
diff --git a/web/packages/new/photos/services/collection.ts b/web/packages/new/photos/services/collection.ts
index c3b8ffa41d..2ec7468f68 100644
--- a/web/packages/new/photos/services/collection.ts
+++ b/web/packages/new/photos/services/collection.ts
@@ -880,6 +880,15 @@ const splitPendingFavoriteFiles = (files: EnteFile[], userID: number) => {
return { pendingFiles, remainingFiles };
};
+/**
+ *
+ * @param fileIDs
+ * @returns
+ *
+ * We had introduced a variable to store the files which
+ * where just favorited, so that they aren't copied again
+ * as the remotePull doesn't occur after the favoriting action.
+ */
const forgetPendingFavoriteFileIDs = (fileIDs: number[]) => {
if (!fileIDs.length) return;
@@ -893,6 +902,7 @@ const forgetPendingFavoriteFileIDs = (fileIDs: number[]) => {
}
}
};
+
/**
*
* @param dstCollection