File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import { useDraft } from '@/hooks/use-drafts';
1414import { useEffect , useState } from 'react' ;
1515
1616import type { Attachment } from '@/types' ;
17- import { m } from '@/paraglide/messages' ;
1817import { useQueryState } from 'nuqs' ;
1918import { X } from '../icons/icons' ;
2019import posthog from 'posthog-js' ;
@@ -122,7 +121,6 @@ export function CreateEmail({
122121 posthog . capture ( 'Create Email Sent' ) ;
123122 }
124123
125- toast . success ( m [ 'pages.createEmail.emailSentSuccessfully' ] ( ) ) ;
126124 handleUndoSend ( result , settings ) ;
127125 } ;
128126
Original file line number Diff line number Diff line change @@ -210,10 +210,7 @@ export default function ReplyCompose({ messageId }: ReplyComposeProps) {
210210 // Reset states
211211 setMode ( null ) ;
212212 await refetch ( ) ;
213- toast . success ( m [ 'pages.createEmail.emailSent' ] ( ) ) ;
214- setTimeout ( ( ) => {
215- handleUndoSend ( result , settings ) ;
216- } , 500 ) ;
213+ handleUndoSend ( result , settings ) ;
217214 } catch ( error ) {
218215 console . error ( 'Error sending email:' , error ) ;
219216 toast . error ( m [ 'pages.createEmail.failedToSendEmail' ] ( ) ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const useUndoSend = () => {
1313 if ( isSendResult ( result ) && settings ?. settings ?. undoSendEnabled ) {
1414 const { messageId, sendAt } = result ;
1515
16- const timeRemaining = sendAt ? sendAt - Date . now ( ) : 30_000 ;
16+ const timeRemaining = sendAt ? sendAt - Date . now ( ) : 15_000 ;
1717
1818 if ( timeRemaining > 5_000 ) {
1919 toast . success ( 'Email scheduled' , {
@@ -28,7 +28,7 @@ export const useUndoSend = () => {
2828 }
2929 } ,
3030 } ,
31- duration : timeRemaining ,
31+ duration : 15_000 ,
3232 } ) ;
3333 }
3434 }
You can’t perform that action at this time.
0 commit comments