TF-1749 Handle delete drafts email after send email successfully

(cherry picked from commit bbef527d780425364660221271295a3fa733dcde)
This commit is contained in:
dab246
2023-04-07 18:17:44 +07:00
committed by Dat Vu
parent c190d6bc06
commit 60b6a0022a
3 changed files with 4 additions and 16 deletions
@@ -141,9 +141,6 @@ class EmailAPI with HandleSetErrorMixin {
final setEmailMethod = SetEmailMethod(accountId)
..addCreate(idCreateMethod, emailNeedsToBeCreated);
if (emailRequest.emailIdDestroyed != null) {
setEmailMethod.addDestroy({emailRequest.emailIdDestroyed!.id});
}
final setEmailInvocation = requestBuilder.invocation(setEmailMethod);
final setEmailSubmissionMethod = SetEmailSubmissionMethod(accountId)