fix: allow terminal profile deletion - #1108
Merged
Merged
Conversation
This was referenced Jul 24, 2026
ben-kaufman
marked this pull request as ready for review
July 24, 2026 10:31
Greptile SummaryProfile deletion now proceeds when private Paykit endpoint cleanup fails.
Confidence Score: 5/5The PR appears safe to merge because no eligible blocking failure remains in this follow-up review. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| app/src/main/java/to/bitkit/ui/screens/profile/EditProfileViewModel.kt | Makes private Paykit cleanup best-effort while preserving remote Pubky deletion as the authoritative success condition. |
| app/src/main/res/values/strings.xml | Updates the confirmation message to warn that contacts may retain previously shared information. |
| app/src/test/java/to/bitkit/ui/screens/profile/EditProfileViewModelTest.kt | Verifies that failed private cleanup no longer blocks Pubky deletion, local cleanup, or the success effect. |
| changelog.d/next/1108.fixed.md | Documents that private Paykit cleanup failures no longer block profile deletion. |
Sequence Diagram
sequenceDiagram
actor User
participant VM as EditProfileViewModel
participant Paykit as PrivatePaykitRepo
participant Pubky as PubkyRepo
User->>VM: Confirm profile deletion
VM->>Paykit: removePublishedEndpointsForCleanup()
Note over VM,Paykit: Cleanup failure does not stop deletion
VM->>Pubky: deleteProfileWithSessionRetry()
alt Pubky deletion succeeds
VM->>Paykit: closeAndClear()
VM-->>User: DeleteSuccess
else Pubky deletion fails
VM-->>User: Show retry/disconnect dialog
end
Reviews (2): Last reviewed commit: "chore: rename changelog fragment" | Re-trigger Greptile
piotr-iohk
enabled auto-merge
July 25, 2026 07:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1097.
Companion iOS fix: synonymdev/bitkit-ios#640
Description
This PR allows terminal Pubky profile deletion to continue when private Paykit endpoint cleanup cannot finish, such as when a contact is offline or a private link is still being established.
Paykit lifecycle/concurrency hardening and E2E repository changes remain outside this PR.
Preview
N/A — behavior and confirmation-copy update only.
QA Notes
Manual Tests
Automated Checks
EditProfileViewModelTest.kt: verifies private cleanup failure does not block a successful Pubky deletion and local Paykit cleanup../gradlew compileDevDebugKotlinpassed../gradlew testDevDebugUnitTestpassed../gradlew detektpassed with pre-existing findings outside this change.git diff --checkpassed.