fix(event): also add jitsi url in the location as outlook doesn't support attach url

This commit is contained in:
Hivert Quentin
2025-12-16 10:50:34 +01:00
parent e9b3f2a43d
commit 7876013a4c
2 changed files with 8 additions and 0 deletions

View File

@@ -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 = "";
}
}
};

View File

@@ -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);
};