Skip to content

Commit

Permalink
fix(calendar): Fix inaccessibility to personal calendar on Mac OS X V…
Browse files Browse the repository at this point in the history
…entura. Fixes #5639
  • Loading branch information
WoodySlum committed Jan 3, 2023
1 parent a7f3daa commit 8680536
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
9 changes: 8 additions & 1 deletion SoObjects/Appointments/SOGoAppointmentFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -2594,8 +2594,15 @@ - (SOGoWebDAVValue *) davCalendarComponentSet
- (NSException *) setDavDescription: (NSString *) description
{
if (description) {
// 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]) {
description = [description stringByReplacingOccurrencesOfString:@"/Personal" withString:@"/personal"];
}

[self setFolderPropertyValue: description
inCategory: @"DavDescription"];
inCategory: @"DavDescription"];
}

return nil;
Expand Down
13 changes: 12 additions & 1 deletion SoObjects/SOGo/SOGoGCSFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,21 @@ - (BOOL) folderIsMandatory

- (NSString *) folderReference
{
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
if ([[context request] isMacOSXVenturaCalendarApp]) {
realNameInContainer = [realNameInContainer stringByReplacingOccurrencesOfString:@"Personal" withString:@"personal"];
}

return [NSString stringWithFormat: @"%@:%@/%@",
owner,
[container nameInContainer],
[self realNameInContainer]];
realNameInContainer];
}

- (NSArray *) pathArrayToFolder
Expand Down

0 comments on commit 8680536

Please sign in to comment.