From 72e41094a5ccc8bf3e31271c7476d9b273caccb2 Mon Sep 17 00:00:00 2001 From: Aj Wazzan Date: Fri, 13 Jun 2025 11:52:49 -0700 Subject: [PATCH] Hotfixing --- apps/mail/components/create/create-email.tsx | 5 ++-- .../mail/components/create/email-composer.tsx | 20 ++++++--------- apps/mail/components/mail/mail.tsx | 19 +++++++------- apps/mail/components/ui/app-sidebar.tsx | 2 +- apps/mail/hooks/use-email-aliases.ts | 1 - apps/server/src/lib/driver/google.ts | 25 +++++++++++++++---- 6 files changed, 40 insertions(+), 32 deletions(-) diff --git a/apps/mail/components/create/create-email.tsx b/apps/mail/components/create/create-email.tsx index 26bade119f..d9c4b542e9 100644 --- a/apps/mail/components/create/create-email.tsx +++ b/apps/mail/components/create/create-email.tsx @@ -155,8 +155,8 @@ export function CreateEmail({ const handleDialogClose = (open: boolean) => { setIsComposeOpen(open ? 'true' : null); - if(!open){ - setDraftId(null) + if (!open) { + setDraftId(null); } }; @@ -185,7 +185,6 @@ export function CreateEmail({ 0); const [showBcc, setShowBcc] = useState(initialBcc.length > 0); const [isLoading, setIsLoading] = useState(false); @@ -312,18 +308,18 @@ export function EmailComposer({ const handleSend = async () => { try { if (isLoading || isSavingDraft) return; - + const values = getValues(); - + // Validate recipient field if (!values.to || values.to.length === 0) { toast.error('Recipient is required'); return; } - + setIsLoading(true); setAiGeneratedMessage(null); - + await onSendEmail({ to: values.to, cc: showCc ? values.cc : undefined, @@ -999,7 +995,7 @@ export function EmailComposer({ {/* From */} - {aliases.length > 0 && !replyingTo && ( + {aliases.length > 0 && (

From: