π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refractor(user.ts):revert-feedback-optional
Aswin Asoka73f2c691102
diff --git a/web/apps/photos/src/components/DeleteAccount.tsx b/web/apps/photos/src/components/DeleteAccount.tsxindex dc6b70ab38..cf7d30fa19 100644--- a/web/apps/photos/src/components/DeleteAccount.tsx+++ b/web/apps/photos/src/components/DeleteAccount.tsx@@ -161,7 +161,7 @@ const DeleteAccountDialogContents: React.FC<await deleteAccount(decryptedChallenge,reason,- feedback.trim() || undefined,+ feedback.trim(),);logout();} else {diff --git a/web/packages/new/photos/services/user.ts b/web/packages/new/photos/services/user.tsindex 6492a30cde..7364e906d7 100644--- a/web/packages/new/photos/services/user.ts+++ b/web/packages/new/photos/services/user.ts@@ -85,17 +85,13 @@ export const decryptDeleteAccountChallenge = async (export const deleteAccount = async (challenge: string,- reasonCategory: string,- feedback?: string,+ reason: string,+ feedback: string,) =>ensureOk(await fetch(await apiURL("/users/delete"), {method: "DELETE",headers: await authenticatedRequestHeaders(),- body: JSON.stringify({- challenge,- reasonCategory,- ...(feedback && { feedback }),- }),+ body: JSON.stringify({ challenge, reason, feedback }),}),);