mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-24 06:19:30 +00:00
fix(calendar): Fix inaccessibility to personal calendar on Mac OS X Ventura. Fixes #5639
This commit is contained in:
@@ -195,6 +195,9 @@ typedef enum {
|
||||
startDate: (NSCalendarDate **) theStartDate
|
||||
endDate: (NSCalendarDate **) theEndDate;
|
||||
|
||||
- (void) setDavDescription:(NSString *)description;
|
||||
- (NSString *) davDescription;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* __Appointments_SOGoAppointmentFolder_H__ */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user