Skip to content

Remove last continuation in list when cancelled #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2025

Conversation

sunkup
Copy link
Member

@sunkup sunkup commented Apr 14, 2025

The UI (requestDecision()) will not be called again if pendindDecision[cert] still contains an empty list (the map entry not removed or set to null).

This would become a problem when the user leaves the app while the dialog is open, such that the request gets canceled and then a new request is made (maybe because the user retries the sync). The certificate dialog would then probably not be shown again, which is bad.

I have added a test and the conditional removal.

@sunkup sunkup linked an issue Apr 14, 2025 that may be closed by this pull request
@sunkup sunkup requested a review from ArnyminerZ April 14, 2025 13:27
@sunkup sunkup marked this pull request as ready for review April 14, 2025 13:27
@rfc2822 rfc2822 requested a review from Copilot April 15, 2025 06:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@sunkup sunkup requested a review from rfc2822 April 15, 2025 09:33
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@rfc2822 rfc2822 merged commit d4878c2 into main Apr 15, 2025
5 checks passed
@rfc2822 rfc2822 deleted the 52-remove-last-continuation-in-list-when-cancelled branch April 15, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove last Continuation in list when cancelled
2 participants