From de26e6da2eff8a9861fb5d8cf35c60828a2f4146 Mon Sep 17 00:00:00 2001
From: Linus Rath <139418639+rathlinus@users.noreply.github.com>
Date: Tue, 24 Mar 2026 14:33:50 +0100
Subject: [PATCH] feat: enhance identity selection by supporting sub-addressing
in email options
---
components/email/email-composer.tsx | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/components/email/email-composer.tsx b/components/email/email-composer.tsx
index a463f4ba..c8f865af 100644
--- a/components/email/email-composer.tsx
+++ b/components/email/email-composer.tsx
@@ -943,11 +943,16 @@ export function EmailComposer({
onChange={(e) => setSelectedIdentityId(e.target.value)}
className="flex-1 bg-transparent text-sm text-foreground outline-none cursor-pointer hover:text-muted-foreground transition-colors min-w-0 truncate"
>
- {identities.map((identity) => (
-
- ))}
+ {identities.map((identity) => {
+ const displayEmail = subAddressTag
+ ? generateSubAddress(identity.email, subAddressTag)
+ : identity.email;
+ return (
+
+ );
+ })}
) : (