Skip to content

Commit 416baa1

Browse files
tddang-linagorahoangdat
authored andcommitted
TF-3183 Clean up draft after email sent
1 parent 2944778 commit 416baa1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/features/composer/presentation/composer_controller.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,9 +1009,7 @@ class ComposerController extends BaseController with DragDropFileMixin implement
10091009
inlineAttachments: uploadController.mapInlineAttachments,
10101010
outboxMailboxId: mailboxDashBoardController.outboxMailbox?.mailboxId,
10111011
sentMailboxId: mailboxDashBoardController.mapDefaultMailboxIdByRole[PresentationMailbox.roleSent],
1012-
draftsEmailId: composerArguments.value!.emailActionType == EmailActionType.editDraft
1013-
? composerArguments.value!.presentationEmail?.id
1014-
: null,
1012+
draftsEmailId: _getDraftEmailId(),
10151013
answerForwardEmailId: composerArguments.value!.presentationEmail?.id,
10161014
unsubscribeEmailId: composerArguments.value!.previousEmailId,
10171015
messageId: composerArguments.value!.messageId,

0 commit comments

Comments
 (0)