π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(DeleteAccount):fix-codex
Aswin Asok83ea523616ea
diff --git a/web/apps/photos/src/components/DeleteAccount.tsx b/web/apps/photos/src/components/DeleteAccount.tsxindex 11b65bdd48..6409cf01a7 100644--- a/web/apps/photos/src/components/DeleteAccount.tsx+++ b/web/apps/photos/src/components/DeleteAccount.tsx@@ -133,9 +133,11 @@ const DeleteAccountDialogContents: React.FC<},onSubmit: async ({ reason, feedback }) => {if (step == "reason") {- setStep("confirmation");- setSummaryLoading(true);try {+ setLoading(true);+ await onAuthenticateUser();+ setStep("confirmation");+ setSummaryLoading(true);setSummary(await getAccountDeletionSummary());} catch (e) {if (isHTTPErrorWithStatus(e, 404)) {@@ -146,6 +148,7 @@ const DeleteAccountDialogContents: React.FC<onGenericError(e);}} finally {+ setLoading(false);setSummaryLoading(false);}return;@@ -159,7 +162,6 @@ const DeleteAccountDialogContents: React.FC<await getAccountDeleteChallenge();if (allowDelete && encryptedChallenge) {- await onAuthenticateUser();const decryptedChallenge =await decryptDeleteAccountChallenge(encryptedChallenge);await deleteAccount(