feat(calendar): Can defined the Jitsi server url for meeting created

This commit is contained in:
Hivert Quentin
2025-02-03 14:19:02 +01:00
parent 092e7694e0
commit 9f4f48a44f
6 changed files with 34 additions and 2 deletions

View File

@@ -147,6 +147,7 @@ static SoProduct *preferencesProduct = nil;
NSMutableDictionary *values, *account, *vacation;
SOGoUserDefaults *defaults;
SOGoDomainDefaults *domainDefaults;
SOGoSystemDefaults *sd;
NSMutableArray *accounts;
NSDictionary *calendarCategoryLabels, *contactsCategoriesLabels, *vacationOptions;
@@ -333,6 +334,13 @@ static SoProduct *preferencesProduct = nil;
[defaults setCalendarCategoriesColors: colors];
}
}
// Add the jisti link if needed
sd = [SOGoSystemDefaults sharedSystemDefaults];
if([sd isCalendarJitsiLinkEnabled])
{
if (![[defaults source] objectForKey: @"SOGoCalendarJitsiBaseUrl"])
[[defaults source] setObject: [domainDefaults calendarJistiBaseUrl] forKey: @"SOGoCalendarJitsiBaseUrl"];
}
//
// Default Contacts preferences