diff --git a/CHANGELOG.md b/CHANGELOG.md index d4fa25d3..44d86d53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - fixed: Disable duress pin mistakenly disables pin-login for entire account. +- fixed: Make `deleteRemoteAccount` a no-op while in duress mode. ## 2.27.3 (2025-05-12) diff --git a/src/core/account/account-api.ts b/src/core/account/account-api.ts index 32a080d9..920eec6e 100644 --- a/src/core/account/account-api.ts +++ b/src/core/account/account-api.ts @@ -443,14 +443,6 @@ export function makeAccountApi(ai: ApiInput, accountId: string): EdgeAccount { async deleteRemoteAccount(): Promise { const { loginTree } = accountState() if (this.isDuressAccount) { - await this.logout() - setTimeout(() => { - ai.props.output.context.api - .forgetAccount(this.rootLoginId) - .catch(err => - ai.props.log.error('EdgeAccount.deleteRemoteAccount', err) - ) - }, 100) return } await deleteLogin(ai, loginTree)