Skip to content

Fix #1558: close blank draft when opening Drafts#1793

Open
Keegil wants to merge 1 commit intorunbox:masterfrom
Keegil:fix/issue-1558
Open

Fix #1558: close blank draft when opening Drafts#1793
Keegil wants to merge 1 commit intorunbox:masterfrom
Keegil:fix/issue-1558

Conversation

@Keegil
Copy link
Copy Markdown
Contributor

@Keegil Keegil commented Mar 26, 2026

Enhancement — Closes blank compose drafts automatically when navigating to the Drafts list.

Problem

When a user clicked Compose and then opened the Drafts folder without typing anything, the blank compose pane remained open in the drafts list instead of being dismissed. This made the drafts view cluttered and inconsistent. Issue #1558.

Fix

  • Detect and close blank unsaved drafts before navigating to the Drafts list
  • Treat default signature-only content as blank so untouched drafts are dismissed
  • Leave replies, forwards, and prefilled drafts unaffected — only truly empty drafts are closed

Testing

  • Unit tests added for blank-draft detection logic in draftdesk.service.spec.ts
  • Cypress regression test added for the Compose → Drafts navigation flow
  • npx tsc -p src/tsconfig.spec.json --noEmit passes

Closes #1558

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.

#Compose: Clicking Compose and then Drafts should close the blank draft

1 participant