mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
fix(calendar): When an event has no date (weird case), it is not possible to remove the event (NSException)
This commit is contained in:
@@ -850,7 +850,7 @@
|
||||
attachUrls = [self attachUrls];
|
||||
if ([attachUrls count]) [data setObject: attachUrls forKey: @"attachUrls"];
|
||||
|
||||
if (!isAllDay)
|
||||
if (!isAllDay && eventStartDate && eventStartDate)
|
||||
{
|
||||
[data setObject: [dateFormatter formattedTime: eventStartDate] forKey: @"localizedStartTime"];
|
||||
[data setObject: [dateFormatter formattedTime: eventEndDate] forKey: @"localizedEndTime"];
|
||||
|
||||
Reference in New Issue
Block a user