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

This commit is contained in:
Ludovic Marcotte
2016-01-08 13:13:39 -05:00
parent 0b5e38e88c
commit 321193472d
2 changed files with 3 additions and 0 deletions
@@ -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];
}