From 7b6d51c9635b82075d3b7fe795021cc8152ee3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Mon, 22 Apr 2024 19:00:04 +0200 Subject: [PATCH] fix: Jitsi blue button generated invitation link isn't expected - EXO-71063 Before this fix, the invite button during a call contains [Object object]? ... instead of the correct url This is due to calling a promise instead of getting the real link This commit update the call to correctly read the promise --- src/main/resources/public/js/call.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/resources/public/js/call.js b/src/main/resources/public/js/call.js index 6e48b168..e07a5128 100644 --- a/src/main/resources/public/js/call.js +++ b/src/main/resources/public/js/call.js @@ -344,10 +344,11 @@ require([ }); }); api.addEventListener("participantRoleChanged", event => { - const inviteLink = provider.getInviteLink(call); - if (!isGuest) { - app.initCallLink(inviteLink); - } + provider.getInviteLink(call).then((inviteLink) => { + if (!isGuest) { + app.initCallLink(inviteLink); + } + }); api.executeCommand("displayName", name); // For recording feature if (event.role === "moderator") {