Skip to content

Commit

Permalink
fix: Jitsi blue button generated invitation link isn't expected - EXO…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
rdenarie committed Apr 23, 2024
1 parent a59481c commit 7b6d51c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/resources/public/js/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 7b6d51c

Please sign in to comment.