From 7d72fe12814d7693939b25450affb7935219fec2 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Tue, 3 Jan 2023 23:33:28 +0100 Subject: [PATCH] fix(calendar): Fix inaccessibility to personal calendar on Mac OS X Ventura. Fixes #5639 --- SoObjects/SOGo/SOGoGCSFolder.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index 3071e3c62..efdd33860 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -401,6 +401,13 @@ static NSArray *childRecordFields = nil; - (void) setOCSPath: (NSString *) _path { + // 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"]; + } + if (![ocsPath isEqualToString:_path]) { if (ocsPath) @@ -463,7 +470,7 @@ static NSArray *childRecordFields = nil; 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