From 610cbb9628288d6178ace69493803c992b2d225c Mon Sep 17 00:00:00 2001 From: benk10 Date: Fri, 24 Jul 2026 11:10:55 +0200 Subject: [PATCH] fix: allow terminal profile deletion --- Bitkit/Managers/PubkyProfileManager.swift | 2 +- Bitkit/Resources/Localization/en.lproj/Localizable.strings | 2 +- changelog.d/next/640.fixed.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/next/640.fixed.md diff --git a/Bitkit/Managers/PubkyProfileManager.swift b/Bitkit/Managers/PubkyProfileManager.swift index 3fe1435f8..ca547bb72 100644 --- a/Bitkit/Managers/PubkyProfileManager.swift +++ b/Bitkit/Managers/PubkyProfileManager.swift @@ -346,7 +346,7 @@ class PubkyProfileManager: ObservableObject { } func deleteProfile() async throws { - try await Self.removePrivatePaykitEndpoints(context: "PubkyProfileManager.deleteProfile") + await Self.removePrivatePaykitEndpointsBestEffort(context: "PubkyProfileManager.deleteProfile") do { try await Task.detached { try await PubkyService.deletePaykitProfile() diff --git a/Bitkit/Resources/Localization/en.lproj/Localizable.strings b/Bitkit/Resources/Localization/en.lproj/Localizable.strings index 495618475..9ca67c33f 100644 --- a/Bitkit/Resources/Localization/en.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/en.lproj/Localizable.strings @@ -1143,7 +1143,7 @@ "profile__edit_delete_section" = "DELETE"; "profile__edit_public_note" = "Please note profile information is stored in public files. Changes you make in Bitkit will not update your pubky.app profile."; "profile__delete_title" = "Delete Profile?"; -"profile__delete_description" = "Are you sure you want to delete all of your profile information for your pubky?"; +"profile__delete_description" = "Deleting your profile removes it from Pubky. Contacts may still retain profile and payment information previously shared with them."; "profile__delete_confirm" = "Yes, Delete"; "profile__delete_error_title" = "Unable to Delete Profile"; "profile__delete_error_description" = "We couldn't delete your profile data. Retry, or disconnect this pubky from Bitkit."; diff --git a/changelog.d/next/640.fixed.md b/changelog.d/next/640.fixed.md new file mode 100644 index 000000000..13b1beb5d --- /dev/null +++ b/changelog.d/next/640.fixed.md @@ -0,0 +1 @@ +Fixed profile deletion being blocked when private Paykit contact cleanup could not complete.