mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 22:35:42 +00:00
fix(calendar): generate missing UID when importing calendar
This commit is contained in:
1 parent
9f38201b6c
commit
e43a721f77
1 file changed
+2
-1
@@ -3367,7 +3367,8 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
// we generate a new UID based on a GUID
|
||||
uid = [event uid];
|
||||
|
||||
if ([uid rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"+/"]].location != NSNotFound)
|
||||
if (![uid length] ||
|
||||
[uid rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"+/"]].location != NSNotFound)
|
||||
{
|
||||
uid = [self globallyUniqueObjectId];
|
||||
[event setUid: uid];
|
||||
|
||||
Reference in new issue
Block a user