Skip to content

Commit

Permalink
fix(mail): Fix not called draft expunge function when sending mail.
Browse files Browse the repository at this point in the history
  • Loading branch information
WoodySlum committed May 29, 2024
1 parent 53d77f3 commit 7ec7a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoObjects/Mailer/SOGoDraftObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -2405,9 +2405,9 @@ - (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent
// - SOGoMailKeepDraftsAfterSend is not set;
// - draft is successfully deleted;
// - drafts mailbox exists.
[self delete];
if (!error &&
![dd mailKeepDraftsAfterSend] &&
![self delete] &&
[imap4 doesMailboxExistAtURL: [container imap4URL]])
[(SOGoDraftsFolder *) container expunge];

Expand Down

0 comments on commit 7ec7a7d

Please sign in to comment.