mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 06:52:40 +00:00
fix(calendar): Fix inaccessibility to personal calendar on Mac OS X Ventura. Fixes #5639
This commit is contained in:
1 parent
a7f3daa33f
commit
86805369a3
2 files changed
+20
-2
No files matched your search
@@ -2594,8 +2594,15 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
- (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;
|
||||
|
||||
@@ -460,10 +460,21 @@ static NSArray *childRecordFields = nil;
|
||||
|
||||
- (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
|
||||
|
||||
Reference in new issue
Block a user