mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-05 23:26:24 +00:00
(fix) append .ics extension if not present when importing events (fixes #2308)
This commit is contained in:
@@ -3150,6 +3150,12 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
}
|
||||
}
|
||||
|
||||
// If the UID isn't ending with the ".ics" extension, let's add it to avoid
|
||||
// confusing broken CalDAV client (like Nokia N9 and Korganizer) that relies
|
||||
// on this (see #2308)
|
||||
if (![[uid lowercaseString] hasSuffix: @".ics"])
|
||||
uid = [NSString stringWithFormat: @"%@.ics", uid];
|
||||
|
||||
object = [SOGoAppointmentObject objectWithName: uid
|
||||
inContainer: self];
|
||||
[object setIsNew: YES];
|
||||
@@ -3313,8 +3319,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
timezone: timezone]))
|
||||
{
|
||||
imported++;
|
||||
[uids setValue: uid
|
||||
forKey: originalUid];
|
||||
[uids setValue: uid forKey: originalUid];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user