mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
Sending an edited draft destroys it server-side, but the viewer kept rendering the deleted message after the composer closed: the mailbox list refreshed (row gone, counter down) while selectedEmail still pointed at the destroyed draft. Clear the selection like a delete does - and return to the list on mobile - when the email on display is the draft the compose session was opened from or its latest autosaved successor (autosave replaces the draft under a fresh id on every save, so matching the sent draftId alone would miss).