(fix) properly save email alarms in the db (fixes #3949)

This commit is contained in:
Ludovic Marcotte committed 2016-12-30 10:31:29 -05:00
1 parent f6bcf26793
commit 479b534857
2 files changed
+2 -1

No files matched your search

@@ -861,7 +861,7 @@ NSNumber *iCalDistantFutureNumber = nil;
[row setObject: [NSNumber numberWithInt: 0] forKey: @"c_nextalarm"];
// Delete old email alarms
if (alarm_number >= 0)
if (!nextAlarmDate && alarm_number >= 0)
[af deleteRecordForEntryWithCName: nameInContainer
inCalendarAtPath: [theContainer ocsPath]];
}