(fix) when deleting an event using EAS, properly invoke the auto-scheduling code

This commit is contained in:
Ludovic Marcotte committed 2016-01-08 13:12:00 -05:00
1 parent 490043b2e1
commit 6a3e64f849
2 files changed
+3

No files matched your search

@@ -573,6 +573,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// FIXME: handle errors here
if (deletesAsMoves && theFolderType == ActiveSyncMailFolder)
[(SOGoMailFolder *)[sogoObject container] deleteUIDs: [NSArray arrayWithObjects: serverId, nil] useTrashFolder: &useTrash inContext: context];
else if (theFolderType == ActiveSyncEventFolder)
[sogoObject prepareDelete];
else
[sogoObject delete];
}