mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
fix(calendar): Fix inaccessibility to personal calendar on Mac OS X Ventura. Fixes #5639
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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: @"%@:%@/%@",
|
||||
|
||||
@@ -226,7 +226,7 @@ static SoSecurityManager *sm = nil;
|
||||
// Ticket #5639
|
||||
if ([[context request] isMacOSXVenturaCalendarApp]) {
|
||||
if ([key isEqualToString:@"personal"]) {
|
||||
key = @"Personal";
|
||||
key = @"PERSONAL";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user