π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix
Manav Rathi61ec736df8ee
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex 56041ea737..f8594f232e 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -84,7 +84,7 @@ import { downloadSelectedFiles, getSelectedFiles } from "utils/file";import { PublicCollectionGalleryContext } from "utils/publicCollectionGallery";export default function PublicCollectionGallery() {- const credentials = useRef<PublicAlbumsCredentials | undefined>();+ const credentials = useRef<PublicAlbumsCredentials | undefined>(undefined);const collectionKey = useRef<string>(null);const url = useRef<string>(null);const referralCode = useRef<string>("");@@ -116,7 +116,7 @@ export default function PublicCollectionGallery() {const {getRootProps: getDragAndDropRootProps,getInputProps: getDragAndDropInputProps,- acceptedFiles: dragAndDropFiles,+ acceptedFiles: dragAndDropFilesReadOnly,} = useDropzone({noClick: true,noKeyboard: true,@@ -175,6 +175,13 @@ export default function PublicCollectionGallery() {return updater;};+ // Create a regular array from the readonly array returned by the dropzone+ // library.+ const dragAndDropFiles = useMemo(+ () => [...dragAndDropFilesReadOnly],+ [dragAndDropFilesReadOnly],+ );+const onAddPhotos = useMemo(() => {return publicCollection?.publicURLs?.[0]?.enableCollect? () => setUploadTypeSelectorView(true)