Deleting mail in thread view, remove popup #398

Closed
opened 2026-06-04 01:21:07 +00:00 by guettli · 1 comment
guettli commented 2026-06-04 01:21:07 +00:00 (Migrated from codeberg.org)

When deleting a mail from thread view, a pop-up is shown:. Delete mail?

Avoid that. Use a snack bar like when deleting from single Mail View

When deleting a mail from thread view, a pop-up is shown:. Delete mail? Avoid that. Use a snack bar like when deleting from single Mail View
guettlibot commented 2026-06-04 02:05:03 +00:00 (Migrated from codeberg.org)

PR created: https://codeberg.org/guettli/sharedinbox/pulls/402


What changed: In thread_detail_screen.dart, the _delete() method previously showed an AlertDialog asking "Move this email to Trash?" before proceeding. I removed the dialog and made deletion happen immediately — exactly as the single mail view does. The UndoShell widget already handles showing a snack bar with an "Undo" button whenever a UndoAction is pushed to undoServiceProvider, so no additional UI code was needed. The change is a net deletion of 20 lines.

PR created: https://codeberg.org/guettli/sharedinbox/pulls/402 --- **What changed:** In `thread_detail_screen.dart`, the `_delete()` method previously showed an `AlertDialog` asking "Move this email to Trash?" before proceeding. I removed the dialog and made deletion happen immediately — exactly as the single mail view does. The `UndoShell` widget already handles showing a snack bar with an "Undo" button whenever a `UndoAction` is pushed to `undoServiceProvider`, so no additional UI code was needed. The change is a net deletion of 20 lines.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: guettli/sharedinbox#398