Files
jmap-webmail/components
Matthieu MALVACHE aebdbc1687 fix: Capture latest draft ID after save to prevent race condition
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.
2025-10-02 13:15:40 +02:00
..