π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename
Manav Rathi19fd1b5ce49d
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsxindex 8e60875ff8..c818504622 100644--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx@@ -515,7 +515,7 @@ const ImageEditorOverlay = (props: IProps) => {uploadManager.prepareForNewUpload();uploadManager.showUploadProgressDialog();- uploadManager.queueFilesForUpload([file], [collection]);+ uploadManager.uploadFiles([file], [collection]);setFileURL(null);props.onClose();props.closePhotoViewer();diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsxindex 8fe263a0a3..f229313f92 100644--- a/web/apps/photos/src/components/Upload/Uploader.tsx+++ b/web/apps/photos/src/components/Upload/Uploader.tsx@@ -558,12 +558,11 @@ export default function Uploader(props: Props) {),);}- const shouldCloseUploadProgress =- await uploadManager.queueFilesForUpload(- filesWithCollectionToUploadIn,- collections,- uploaderName,- );+ const shouldCloseUploadProgress = await uploadManager.uploadFiles(+ filesWithCollectionToUploadIn,+ collections,+ uploaderName,+ );if (shouldCloseUploadProgress) {closeUploadProgress();}@@ -595,7 +594,7 @@ export default function Uploader(props: Props) {uploadManager.getFailedFilesWithCollections();const uploaderName = uploadManager.getUploaderName();await preUploadAction();- await uploadManager.queueFilesForUpload(+ await uploadManager.uploadFiles(/* TODO(MR): ElectronFile changes */filesWithCollections.files as FileWithCollection[],filesWithCollections.collections,diff --git a/web/apps/photos/src/services/upload/uploadManager.ts b/web/apps/photos/src/services/upload/uploadManager.tsindex 81de24bc0b..601ccb7d87 100644--- a/web/apps/photos/src/services/upload/uploadManager.ts+++ b/web/apps/photos/src/services/upload/uploadManager.ts@@ -339,7 +339,18 @@ class UploadManager {this.uiService.setUploadProgressView(true);}- public async queueFilesForUpload(+ /**+ * Upload files+ *+ * This function waits for all the files to get uploaded (successfully or+ * unsucessfully) before returning.+ *+ * @param filesWithCollectionToUploadIn The files to upload, each paired+ * with the id of the collection that they should be uploaded into.+ *+ * @returns `true` if at least one file was processed+ */+ public async uploadFiles(filesWithCollectionToUploadIn: FileWithCollection[],collections: Collection[],uploaderName?: string,