π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
yarn lint
Manav Rathi575f1744a268
diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsxindex c9bcf6993f..4fb5dd2c65 100644--- a/web/apps/photos/src/components/Collections/AllAlbums.tsx+++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx@@ -267,6 +267,8 @@ const AllAlbumsContent: React.FC<AllAlbumsContentProps> = ({itemSize={CollectionRowItemSize}itemData={itemData}>+ {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */+ /* @ts-ignore TODO deal with this new react-window type error */}{AlbumsRow}</FixedSizeList>)}diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsxindex c238edcb80..834bc6ae0c 100644--- a/web/apps/photos/src/components/FileList.tsx+++ b/web/apps/photos/src/components/FileList.tsx@@ -908,6 +908,8 @@ export const FileList: React.FC<FileListProps> = ({overscanCount={3}useIsScrolling>+ {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */+ /* @ts-ignore TODO deal with this new react-window type error */}{PhotoListRow}</List>);diff --git a/web/packages/accounts/pages/two-factor/recover.tsx b/web/packages/accounts/pages/two-factor/recover.tsxindex f0aba30440..a7dbd2c6d5 100644--- a/web/packages/accounts/pages/two-factor/recover.tsx+++ b/web/packages/accounts/pages/two-factor/recover.tsx@@ -48,7 +48,14 @@ const Page: React.FC<RecoverPageProps> = ({ twoFactorType }) => {useEffect(() => {const user = getData("user");- const sid = user.passkeySessionID || user.twoFactorSessionID;+ // TODO: Can't disable @typescript-eslint/prefer-nullish-coalescing here+ // because this file is imported from multiple configurations, some of+ // which have it on, some of which have it off.+ //+ // Converting || to ?? here is a behaviour change that will need audit+ // first. So for now, writing it the weird way around.+ let sid = user.passkeySessionID;+ if (!sid) sid = user.twoFactorSessionID;if (!user?.email || !sid) {void router.push("/");} else if (