π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix
Manav Rathi0fca6728cdb7
diff --git a/web/apps/photos/eslint.config.mjs b/web/apps/photos/eslint.config.mjsindex b0153b57e2..80cc68e5b9 100644--- a/web/apps/photos/eslint.config.mjs+++ b/web/apps/photos/eslint.config.mjs@@ -28,7 +28,6 @@ export default ["@typescript-eslint/no-useless-constructor": "off","@typescript-eslint/require-await": "off","@typescript-eslint/no-var-requires": "off",- "@typescript-eslint/prefer-optional-chain": "off","@typescript-eslint/no-misused-promises": "off","@typescript-eslint/restrict-template-expressions": "off","@typescript-eslint/no-inferrable-types": "off",diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxindex 7958ef6928..77cff0f838 100644--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -535,7 +535,7 @@ const DownloadOption: React.FC<> = ({ isDownloadInProgress, onClick, children }) => (<OverflowMenuOptionstartIcon={- isDownloadInProgress && isDownloadInProgress() ? (+ isDownloadInProgress?.() ? (<ActivityIndicator size="20px" sx={{ cursor: "not-allowed" }} />) : (<FileDownloadOutlinedIcon />diff --git a/web/apps/photos/src/components/FilesDownloadProgress.tsx b/web/apps/photos/src/components/FilesDownloadProgress.tsxindex 72b4b9981c..c73699f2d4 100644--- a/web/apps/photos/src/components/FilesDownloadProgress.tsx+++ b/web/apps/photos/src/components/FilesDownloadProgress.tsx@@ -50,7 +50,7 @@ export const isFilesDownloadCompletedWithErrors = (export const isFilesDownloadCancelled = (attributes: FilesDownloadProgressAttributes,) => {- return attributes && attributes.canceller?.signal?.aborted;+ return attributes?.canceller?.signal?.aborted;};export const FilesDownloadProgress: React.FC<FilesDownloadProgressProps> = ({diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/MapBox.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/MapBox.tsxindex 25d3cc25d3..a0262c7afa 100644--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/MapBox.tsx+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/MapBox.tsx@@ -59,7 +59,7 @@ const MapBox: React.FC<MapBoxProps> = ({L.marker(position).addTo(map).openPopup();}} else {- if (mapContainer && mapContainer.hasChildNodes()) {+ if (mapContainer?.hasChildNodes()) {if (mapContainer.firstChild) {mapContainer.removeChild(mapContainer.firstChild);}diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsxindex beff8d012b..2f476cea93 100644--- a/web/apps/photos/src/components/PhotoViewer/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx@@ -666,7 +666,7 @@ function PhotoViewer(props: PhotoViewerProps) {if (isInFullScreenMode) {const fullScreenApi: PhotoswipeFullscreenAPI =photoSwipe?.ui?.getFullscreenAPI();- if (fullScreenApi && fullScreenApi.isFullscreen()) {+ if (fullScreenApi?.isFullscreen()) {fullScreenApi.exit();setIsInFullScreenMode(false);}