fix: include sender display name in From header and default identity selection

- Emails now include the identity display name in the From field so recipients
  see "Name <email>" instead of bare "<email>"
- Primary identity (matching login username) is pre-selected in composer dropdown
This commit is contained in:
Matthieu MALVACHE
2026-02-25 12:35:39 +01:00
committed by Matthieu MALVACHE
parent ff3ae80f23
commit 02f4ce81e3
6 changed files with 35 additions and 12 deletions
+4 -1
View File
@@ -30,6 +30,7 @@ interface EmailComposerProps {
body: string;
draftId?: string;
fromEmail?: string;
fromName?: string;
identityId?: string;
}) => void | Promise<void>;
onClose?: () => void;
@@ -368,7 +369,8 @@ export function EmailComposer({
currentIdentity?.id,
fromEmail,
draftId || undefined,
uploadedAttachments
uploadedAttachments,
currentIdentity?.name || undefined
);
setDraftId(savedDraftId);
@@ -484,6 +486,7 @@ export function EmailComposer({
body,
draftId: finalDraftId || undefined,
fromEmail,
fromName: currentIdentity?.name || undefined,
identityId: currentIdentity?.id,
});