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

This commit is contained in:
smizrahi committed 2023-01-03 15:24:30 +01:00
1 parent a7f3daa33f
commit 86805369a3
2 files changed
+20 -2

No files matched your search

@@ -2594,8 +2594,15 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
- (NSException *) setDavDescription: (NSString *) description
{
if (description) {
// FIXME: Improve MacOSX Ventura support
// Check if the problem will be fixed by Apple or if this fix should be kept in the future
// Ticket #5639
if ([[context request] isMacOSXVenturaCalendarApp]) {
description = [description stringByReplacingOccurrencesOfString:@"/Personal" withString:@"/personal"];
}
[self setFolderPropertyValue: description
inCategory: @"DavDescription"];
inCategory: @"DavDescription"];
}
return nil;
+12 -1
View File
@@ -460,10 +460,21 @@ static NSArray *childRecordFields = nil;
- (NSString *) folderReference
{
NSString *realNameInContainer;
realNameInContainer = [self realNameInContainer];
// FIXME: Improve MacOSX Ventura support
// Check if the problem will be fixed by Apple or if this fix should be kept in the future
// Ticket #5639
if ([[context request] isMacOSXVenturaCalendarApp]) {
realNameInContainer = [realNameInContainer stringByReplacingOccurrencesOfString:@"Personal" withString:@"personal"];
}
return [NSString stringWithFormat: @"%@:%@/%@",
owner,
[container nameInContainer],
[self realNameInContainer]];
realNameInContainer];
}
- (NSArray *) pathArrayToFolder