π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Avoid the same name
Manav Rathi7cd1ce0a99d3
diff --git a/web/apps/photos/src/pages/deduplicate.tsx b/web/apps/photos/src/pages/deduplicate.tsxindex 3b7b41bff6..4b1d16630a 100644--- a/web/apps/photos/src/pages/deduplicate.tsx+++ b/web/apps/photos/src/pages/deduplicate.tsx@@ -135,8 +135,8 @@ export default function Deduplicate() {const selectedFiles = getSelectedFiles(selected, duplicateFiles);await moveToTrash(selectedFiles);- // trashFiles above does an API request, we still need to update our- // local state.+ // moveToTrash above does an API request, we still need to update+ // our local state.//// Enhancement: This can be done in a more granular manner. Also, it// is better to funnel these syncs instead of adding these here anddiff --git a/web/apps/photos/src/services/export/index.ts b/web/apps/photos/src/services/export/index.tsindex c242ae1bca..48f76c8566 100644--- a/web/apps/photos/src/services/export/index.ts+++ b/web/apps/photos/src/services/export/index.ts@@ -750,19 +750,19 @@ class ExportService {const { image, video } =parseLivePhotoExportName(fileExportName);- await moveToTrash(+ await moveToFSTrash(exportDir,collectionExportName,image,);- await moveToTrash(+ await moveToFSTrash(exportDir,collectionExportName,video,);} else {- await moveToTrash(+ await moveToFSTrash(exportDir,collectionExportName,fileExportName,@@ -1459,14 +1459,15 @@ const isExportInProgress = (exportStage: ExportStage) =>exportStage > ExportStage.INIT && exportStage < ExportStage.FINISHED;/**- * Move {@link fileName} in {@link collectionName} to Trash.+ * Move {@link fileName} in {@link collectionName} to the special per-collection+ * file system "Trash" folder we created under the export directory.** Also move its associated metadata JSON to Trash.** @param exportDir The root directory on the user's file system where we are* exporting to.* */-const moveToTrash = async (+const moveToFSTrash = async (exportDir: string,collectionName: string,fileName: string,