TF-3183 Clean up draft after email sent

This commit is contained in:
DatDang
2024-10-01 15:47:31 +07:00
committed by Dat H. Pham
parent 2944778074
commit 416baa18d3
@@ -1009,9 +1009,7 @@ class ComposerController extends BaseController with DragDropFileMixin implement
inlineAttachments: uploadController.mapInlineAttachments,
outboxMailboxId: mailboxDashBoardController.outboxMailbox?.mailboxId,
sentMailboxId: mailboxDashBoardController.mapDefaultMailboxIdByRole[PresentationMailbox.roleSent],
draftsEmailId: composerArguments.value!.emailActionType == EmailActionType.editDraft
? composerArguments.value!.presentationEmail?.id
: null,
draftsEmailId: _getDraftEmailId(),
answerForwardEmailId: composerArguments.value!.presentationEmail?.id,
unsubscribeEmailId: composerArguments.value!.previousEmailId,
messageId: composerArguments.value!.messageId,