Fix join button

pull/15102/head
Travis Ralston 2020-10-01 09:59:13 -06:00
parent cdf9547220
commit 9cb823b210
1 changed files with 2 additions and 5 deletions

View File

@ -109,9 +109,6 @@ let meetApi: any; // JitsiMeetExternalAPI
// Request credentials, give callback to continue when received // Request credentials, give callback to continue when received
openIdToken = await widgetApi.requestOpenIDConnectToken(); openIdToken = await widgetApi.requestOpenIDConnectToken();
console.log("Got OpenID Connect token"); 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) // 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 widgetApi.transport.reply(ev.detail, {}); // ack
}, },
); );
} else {
enableJoinButton();
} }
enableJoinButton(); // always enable the button
} catch (e) { } catch (e) {
console.error("Error setting up Jitsi widget", e); console.error("Error setting up Jitsi widget", e);
document.getElementById("widgetActionContainer").innerText = "Failed to load Jitsi widget"; document.getElementById("widgetActionContainer").innerText = "Failed to load Jitsi widget";