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

This commit is contained in:
smizrahi
2023-01-26 17:12:08 +01:00
parent f15840217b
commit 7e357f1bc9
4 changed files with 6 additions and 6 deletions

View File

@@ -2598,7 +2598,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
// 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"];
description = [description stringByReplacingOccurrencesOfString:@"/PERSONAL" withString:@"/personal"];
}
[self setFolderPropertyValue: description

View File

@@ -140,7 +140,7 @@ static NSString *inboxFolderName = @"INBOX";
// 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]) {
namespace = [namespaceDict objectForKey: @"Personal"];
namespace = [namespaceDict objectForKey: @"PERSONAL"];
}
if (namespace)
[self _appendNamespace: namespace toFolders: folders];

View File

@@ -405,7 +405,7 @@ static NSArray *childRecordFields = nil;
// 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]) {
_path = [_path stringByReplacingOccurrencesOfString:@"/Personal" withString:@"/personal"];
_path = [_path stringByReplacingOccurrencesOfString:@"/PERSONAL" withString:@"/personal"];
}
if (![ocsPath isEqualToString:_path])
@@ -442,7 +442,7 @@ static NSArray *childRecordFields = nil;
// 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]) {
_path = [_path stringByReplacingOccurrencesOfString:@"Personal" withString:@"personal"];
_path = [_path stringByReplacingOccurrencesOfString:@"PERSONAL" withString:@"personal"];
}
// We check if we got a cache miss or a potentially bogus
@@ -475,7 +475,7 @@ static NSArray *childRecordFields = nil;
// 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"];
realNameInContainer = [realNameInContainer stringByReplacingOccurrencesOfString:@"PERSONAL" withString:@"personal"];
}
return [NSString stringWithFormat: @"%@:%@/%@",

View File

@@ -226,7 +226,7 @@ static SoSecurityManager *sm = nil;
// Ticket #5639
if ([[context request] isMacOSXVenturaCalendarApp]) {
if ([key isEqualToString:@"personal"]) {
key = @"Personal";
key = @"PERSONAL";
}
}