Skip to content

[stable5.6] fix(composer): drop envelope from store when saving a draft#12332

Open
backportbot[bot] wants to merge 1 commit intostable5.6from
backport/12322/stable5.6
Open

[stable5.6] fix(composer): drop envelope from store when saving a draft#12332
backportbot[bot] wants to merge 1 commit intostable5.6from
backport/12322/stable5.6

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Jan 29, 2026

Backport of PR #12322

Addresses a timing issue when updating drafts.

Since drafts are immutable, updating a draft deletes the old message and
creates a new one.

If the user is quick or the sync is slow, the draft being deleted can
still appear in the list after closing the composer.

Reopening that envelope/draft leads to a state where further edits fail.

This change removes the envelope from the store to avoid this problem.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant