TF-1749 Handle delete drafts email after send email successfully
(cherry picked from commit bbef527d780425364660221271295a3fa733dcde)
This commit is contained in:
@@ -40,6 +40,10 @@ class SendEmailInteractor {
|
||||
);
|
||||
|
||||
if (result) {
|
||||
if (emailRequest.emailIdDestroyed != null) {
|
||||
await _emailRepository.deleteEmailPermanently(session, accountId, emailRequest.emailIdDestroyed!);
|
||||
}
|
||||
|
||||
yield Right<Failure, Success>(
|
||||
SendEmailSuccess(
|
||||
currentEmailState: currentEmailState,
|
||||
|
||||
Reference in New Issue
Block a user