Skip to content

fix: Prevent race deleting drafts and scheduled posts#2269

Merged
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:draft-delete
May 4, 2026
Merged

fix: Prevent race deleting drafts and scheduled posts#2269
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:draft-delete

Conversation

@nikclayton

Copy link
Copy Markdown
Contributor

Previous code could race between the drafts/scheduled posts being deleted and the "checked" state of the post being cleared, resulting in some/all of the posts not being deleted.

Fix by clearing as the viewmodel deletes the posts, instead of in response to the action mode being cleared.

Reported by @lufertec@mastodon.uy.

Previous code could race between the drafts/scheduled posts being deleted
and the "checked" state of the post being cleared, resulting in some/all of
the posts not being deleted.

Fix by clearing as the viewmodel deletes the posts, instead of in response
to the action mode being cleared.

Reported by @lufertec@mastodon.uy.
@nikclayton nikclayton merged commit 8a1be9a into pachli:main May 4, 2026
52 of 53 checks passed
@nikclayton nikclayton deleted the draft-delete branch May 4, 2026 11:18
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.

1 participant