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
+6
View File
@@ -431,6 +431,12 @@ static NSArray *childRecordFields = nil;
cache = [SOGoCache sharedCache];
record = [[cache valueForKey: _path] objectFromJSONString];
// 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]) {
_path = [_path stringByReplacingOccurrencesOfString:@"Personal" withString:@"personal"];
}
// We check if we got a cache miss or a potentially bogus
// entry from the cache