Compose: remind about missing attachment when the message mentions one #79

Closed
opened 2026-07-01 21:56:41 +00:00 by JMR-dev · 0 comments
JMR-dev commented 2026-07-01 21:56:41 +00:00 (Migrated from github.com)

Feature

When the user taps Send and the subject or body mentions an attachment (the word "attach" or a variant: attached, attachment(s), attaching, attaches) but the message has no attachments, show a confirmation dialog:

Need to attach anything?
Your message mentions an attachment, but nothing is attached.

  • Yes — return to the compose screen and highlight the attach button so the user can add the file.
  • No — continue sending the message as-is.
  • Dismissing the dialog (tap outside / back) cancels the send without highlighting.

Acceptance criteria

  • Keyword match is case-insensitive and word-bounded ("attack" must not trigger; "Attached"/"attaching"/"ATTACHMENTS" must).
  • Subject-only mention triggers the prompt.
  • No prompt when at least one attachment is present, or when no variant appears.
  • "No" sends exactly the message that was composed; "Yes" sends nothing and highlights the attach button.
  • Covered by ComposeViewModel unit tests and a ComposeScreen E2E flow test.

🤖 Generated with Claude Code

## Feature When the user taps **Send** and the subject or body mentions an attachment (the word "attach" or a variant: attached, attachment(s), attaching, attaches) but the message has **no attachments**, show a confirmation dialog: > **Need to attach anything?** > Your message mentions an attachment, but nothing is attached. - **Yes** — return to the compose screen and highlight the attach button so the user can add the file. - **No** — continue sending the message as-is. - Dismissing the dialog (tap outside / back) cancels the send without highlighting. ## Acceptance criteria - [ ] Keyword match is case-insensitive and word-bounded ("attack" must not trigger; "Attached"/"attaching"/"ATTACHMENTS" must). - [ ] Subject-only mention triggers the prompt. - [ ] No prompt when at least one attachment is present, or when no variant appears. - [ ] "No" sends exactly the message that was composed; "Yes" sends nothing and highlights the attach button. - [ ] Covered by ComposeViewModel unit tests and a ComposeScreen E2E flow test. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JMR-dev/LibreMail#79