mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-23 16:01:15 +00:00
When sending an email with attachments, saveDraft() would destroy+create the draft (generating a new ID), but handleSend() was using the old ID from React state which hadn't updated yet. This caused "notFound" errors. Fixed by making saveDraft() return the draft ID and using it directly in handleSend() instead of relying on async state updates.