mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(event): also add jitsi url in the location as outlook doesn't support attach url
This commit is contained in:
@@ -833,7 +833,14 @@
|
||||
Component.prototype.deleteAttachUrl = function(index) {
|
||||
|
||||
if (index > -1 && this.attachUrls.length > index) {
|
||||
var currentUrl = this.attachUrls[index];
|
||||
this.attachUrls.splice(index, 1);
|
||||
var jitsiBaseUrl = "https://meet.jit.si";
|
||||
if(Component.$Preferences.defaults && Component.$Preferences.defaults.SOGoCalendarJitsiBaseUrl)
|
||||
jitsiBaseUrl = Component.$Preferences.defaults.SOGoCalendarJitsiBaseUrl;
|
||||
if (currentUrl.value.includes(jitsiBaseUrl)) {
|
||||
this.location = "";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -323,6 +323,7 @@
|
||||
jitsiRoomPrefix = this.preferences.defaults.SOGoCalendarJitsiRoomPrefix;
|
||||
var jitsiUrl = jitsiBaseUrl + "/" + jitsiRoomPrefix + crypto.randomUUID();
|
||||
var i = this.component.addAttachUrl(jitsiUrl);
|
||||
this.component.location = jitsiUrl;
|
||||
focus('attachUrl_' + i);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user