mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-02 08:15:55 +00:00
Deleting from inside an open message advanced to the next email. Gmail (and most clients) return you to the message list instead. In the viewer's onDelete, deselect first (handleMobileBack) so the store's remove-and-advance sees no selection and won't auto-open the next message, then delete the captured email. Returning to the list immediately also avoids a flash of the next email. Scoped to the single-message viewer; list and keyboard deletes (which keep auto-advance) are unchanged. Consistent with the mark-unread-returns-to-list behaviour.