π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Touchups
Manav Rathi78962b261179
diff --git a/web/apps/photos/src/components/AuthenticateUserModal.tsx b/web/apps/photos/src/components/AuthenticateUserModal.tsxindex 6f17a61bc7..1fe92900e9 100644--- a/web/apps/photos/src/components/AuthenticateUserModal.tsx+++ b/web/apps/photos/src/components/AuthenticateUserModal.tsx@@ -130,4 +130,5 @@ const passwordChangedElsewhereDialogAttributes = (text: t("login"),action: onLogin,},+ cancel: false,});diff --git a/web/apps/photos/src/components/DeleteAccountModal.tsx b/web/apps/photos/src/components/DeleteAccountModal.tsxindex 82cd039c44..795d96bfb3 100644--- a/web/apps/photos/src/components/DeleteAccountModal.tsx+++ b/web/apps/photos/src/components/DeleteAccountModal.tsx@@ -106,23 +106,13 @@ const DeleteAccountModal = ({ open, onClose }: Iprops) => {});};- /* mark: uses-loading */- const solveChallengeAndDeleteAccount = async (- setLoading: (value: boolean) => void,- ) => {- try {- setLoading(true);- const decryptedChallenge = await decryptDeleteAccountChallenge(- deleteAccountChallenge.current,- );- const { reason, feedback } = reasonAndFeedbackRef.current;- await deleteAccount(decryptedChallenge, reason, feedback);- logout();- } catch (e) {- onGenericError(e);- } finally {- setLoading(false);- }+ const solveChallengeAndDeleteAccount = async () => {+ const decryptedChallenge = await decryptDeleteAccountChallenge(+ deleteAccountChallenge.current,+ );+ const { reason, feedback } = reasonAndFeedbackRef.current;+ await deleteAccount(decryptedChallenge, reason, feedback);+ logout();};return (diff --git a/web/packages/accounts/pages/two-factor/recover.tsx b/web/packages/accounts/pages/two-factor/recover.tsxindex 0aa1406b6f..8fdfd4dbb8 100644--- a/web/packages/accounts/pages/two-factor/recover.tsx+++ b/web/packages/accounts/pages/two-factor/recover.tsx@@ -72,7 +72,6 @@ const Page: React.FC<RecoverPageProps> = ({ appContext, twoFactorType }) => {if (!resp.encryptedSecret) {showContactSupportDialog({text: t("GO_BACK"),- autoClose: true,action: router.back,});} else {@@ -92,7 +91,6 @@ const Page: React.FC<RecoverPageProps> = ({ appContext, twoFactorType }) => {setDoesHaveEncryptedRecoveryKey(false);showContactSupportDialog({text: t("GO_BACK"),- autoClose: true,action: router.back,});}