Skip to content

feat: ability to cancel a draft#13175

Open
madbob wants to merge 1 commit into
nextcloud:mainfrom
madbob:issue_2492
Open

feat: ability to cancel a draft#13175
madbob wants to merge 1 commit into
nextcloud:mainfrom
madbob:issue_2492

Conversation

@madbob

@madbob madbob commented Jun 29, 2026

Copy link
Copy Markdown

The ingenuous solution here provided is to explicitely trigger the draft-saving function immediately when the NewMessageModal is opened, so to move the whole component in the canonical "draft saved" state (displaying the explicit trash button).

Alternative solutions would imply a more complex integration with MessageService.deleteMessage() (instead of DraftService.deleteDraft()) when required.

Fixes #2492

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.

Add 'cancel' button to discard draft

1 participant