1
0
mirror of https://github.com/Alinto/sogo.git synced 2025-04-18 10:04:00 +03:00

feat(calendar): Make the Jitsi meeting room prefix configurable

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
This commit is contained in:
Slávek Banko 2025-03-30 21:11:29 +02:00 committed by QHivert
parent 1f8dc12929
commit 4a68909060
5 changed files with 23 additions and 1 deletions

View File

@ -490,6 +490,12 @@ the jitsi server used for creating the meeting link.
Defaults to `https://meet.jit.si` when unset.
|D |SOGoCalendarJitsiRoomPrefix
|Only used if SOGoCalendarEnableJitsiLink is set to YES. The string for
the Jitsi room prefix used for creating the meeting link.
Defaults to `SOGo_meeting/` when unset.
|S |SOGoSAML2PrivateKeyLocation
|The location of the SSL private key file on the filesystem that is used
by SOGo to sign and encrypt communications with the SAML2 identity

View File

@ -79,6 +79,7 @@
- (BOOL) foldersSendEMailNotifications;
- (NSArray *) calendarDefaultRoles;
- (NSString *) calendarJistiBaseUrl;
- (NSString *) calendarJitsiRoomPrefix;
- (NSArray *) contactsDefaultRoles;
- (NSArray *) refreshViewIntervals;
- (NSString *) subscriptionFolderFormat;

View File

@ -179,6 +179,16 @@
return jitsiBaseUrl;
}
- (NSString *) calendarJitsiRoomPrefix
{
NSString *jitsiRoomPrefix;
jitsiRoomPrefix = [self stringForKey: @"SOGoCalendarJitsiRoomPrefix"];
if(!jitsiRoomPrefix)
jitsiRoomPrefix = @"SOGo_meeting/";
return jitsiRoomPrefix;
}
- (NSArray *) contactsDefaultRoles
{
return [self stringArrayForKey: @"SOGoContactsDefaultRoles"];

View File

@ -340,6 +340,8 @@ static SoProduct *preferencesProduct = nil;
{
if (![[defaults source] objectForKey: @"SOGoCalendarJitsiBaseUrl"])
[[defaults source] setObject: [domainDefaults calendarJistiBaseUrl] forKey: @"SOGoCalendarJitsiBaseUrl"];
if (![[defaults source] objectForKey: @"SOGoCalendarJitsiRoomPrefix"])
[[defaults source] setObject: [domainDefaults calendarJitsiRoomPrefix] forKey: @"SOGoCalendarJitsiRoomPrefix"];
}
//

View File

@ -316,9 +316,12 @@
this.addJitsiUrl = function () {
var jitsiBaseUrl = "https://meet.jit.si";
var jitsiRoomPrefix = "SOGo_meeting/";
if(this.preferences.defaults && this.preferences.defaults.SOGoCalendarJitsiBaseUrl)
jitsiBaseUrl = this.preferences.defaults.SOGoCalendarJitsiBaseUrl;
var jitsiUrl = jitsiBaseUrl + "/SOGo_meeting/" + crypto.randomUUID();
if(this.preferences.defaults && this.preferences.defaults.SOGoCalendarJitsiRoomPrefix)
jitsiRoomPrefix = this.preferences.defaults.SOGoCalendarJitsiRoomPrefix;
var jitsiUrl = jitsiBaseUrl + "/" + jitsiRoomPrefix + crypto.randomUUID();
var i = this.component.addAttachUrl(jitsiUrl);
focus('attachUrl_' + i);
};