Fix join button

This commit is contained in:
Travis Ralston 2020-10-01 09:59:13 -06:00
parent cdf9547220
commit 9cb823b210

View File

@ -109,9 +109,6 @@ let meetApi: any; // JitsiMeetExternalAPI
// Request credentials, give callback to continue when received
openIdToken = await widgetApi.requestOpenIDConnectToken();
console.log("Got OpenID Connect token");
enableJoinButton();
} else {
enableJoinButton();
}
// TODO: register widgetApi listeners for PTT controls (https://github.com/vector-im/riot-web/issues/12795)
@ -122,9 +119,9 @@ let meetApi: any; // JitsiMeetExternalAPI
widgetApi.transport.reply(ev.detail, {}); // ack
},
);
} else {
enableJoinButton();
}
enableJoinButton(); // always enable the button
} catch (e) {
console.error("Error setting up Jitsi widget", e);
document.getElementById("widgetActionContainer").innerText = "Failed to load Jitsi widget";