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

This commit is contained in:
smizrahi
2022-12-07 17:57:00 +01:00
parent fe9ae12e46
commit 03e6d0012b
4 changed files with 36 additions and 2 deletions
+12 -1
View File
@@ -221,10 +221,21 @@ static SoSecurityManager *sm = nil;
while ((row = [fc fetchAttributes: attrs withZone: NULL]))
{
key = [row objectForKey: @"c_path4"];
// 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]) {
if ([key isEqualToString:@"personal"]) {
key = @"Personal";
}
}
if ([key isKindOfClass: [NSString class]])
{
folder = [subFolderClass objectWithName: key inContainer: self];
[folder setOCSPath: [NSString stringWithFormat: @"%@/%@", OCSPath, key]];
[folder setOCSPath: [NSString stringWithFormat: @"%@/%@", OCSPath, key]];
if (folder)
[subFolders setObject: folder forKey: key];
}
}