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:
parent
1f8dc12929
commit
4a68909060
@ -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
|
||||
|
@ -79,6 +79,7 @@
|
||||
- (BOOL) foldersSendEMailNotifications;
|
||||
- (NSArray *) calendarDefaultRoles;
|
||||
- (NSString *) calendarJistiBaseUrl;
|
||||
- (NSString *) calendarJitsiRoomPrefix;
|
||||
- (NSArray *) contactsDefaultRoles;
|
||||
- (NSArray *) refreshViewIntervals;
|
||||
- (NSString *) subscriptionFolderFormat;
|
||||
|
@ -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"];
|
||||
|
@ -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"];
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user