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

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

View File

@@ -195,6 +195,9 @@ typedef enum {
startDate: (NSCalendarDate **) theStartDate
endDate: (NSCalendarDate **) theEndDate;
- (void) setDavDescription:(NSString *)description;
- (NSString *) davDescription;
@end
#endif /* __Appointments_SOGoAppointmentFolder_H__ */

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;
}
/*

View File

@@ -1551,6 +1551,9 @@
currentValue = [setProps objectForKey: currentProp];
exception = [self performSelector: methodSel
withObject: currentValue];
if (![exception isKindOfClass: [NSException class]]) {
exception = nil;
}
}
else
exception = [NSException exceptionWithDAVStatus: 403