fix(calendar): Fix inaccessibility to personal calendar on Mac OS X Ventura. Fixes #5639

This commit is contained in:
smizrahi committed 2022-12-13 11:08:43 +01:00
1 parent 435495f007
commit 6ee8f764e9
3 files changed
+26 -1

No files matched your search

@@ -195,6 +195,9 @@ typedef enum {
startDate: (NSCalendarDate **) theStartDate
endDate: (NSCalendarDate **) theEndDate;
- (void) setDavDescription:(NSString *)description;
- (NSString *) davDescription;
@end
#endif /* __Appointments_SOGoAppointmentFolder_H__ */
+20 -1
View File
@@ -2038,6 +2038,13 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
{
NSException *error;
NSString *realColor;
if ([newColor length] == 7
&& [newColor hasPrefix: @"#"])
{
// Missing alpha channel
newColor = [newColor stringByAppendingString: @"FF"];
}
if ([newColor length] == 9
&& [newColor hasPrefix: @"#"])
@@ -2584,9 +2591,21 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
return componentSet;
}
- (void) setDavDescription: (NSString *) description
{
[self setFolderPropertyValue: description
inCategory: @"DavDescription"];
}
- (NSString *) davDescription
{
return @"";
NSString *davDescription;
davDescription = [self folderPropertyValueInCategory: @"DavDescription"];
if (!davDescription)
davDescription = @"";
return davDescription;
}
/*