Fix bad merge

This commit is contained in:
Travis Ralston 2020-09-22 09:01:55 -06:00
parent 465a2ce314
commit c7617c2538

View file

@ -18,7 +18,6 @@ limitations under the License.
require("./index.scss"); require("./index.scss");
import * as qs from 'querystring'; import * as qs from 'querystring';
import {Capability, WidgetApi} from 'matrix-react-sdk/src/widgets/WidgetApi';
import {KJUR} from 'jsrsasign'; import {KJUR} from 'jsrsasign';
import { import {
IWidgetApiRequest, IWidgetApiRequest,
@ -92,13 +91,14 @@ let widgetApi: WidgetApi;
roomId = qsParam('roomId', true); roomId = qsParam('roomId', true);
if (widgetApi) { if (widgetApi) {
await widgetApi.waitReady(); await readyPromise;
await widgetApi.setAlwaysOnScreen(false); // start off as detachable from the screen await widgetApi.setAlwaysOnScreen(false); // start off as detachable from the screen
// See https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification // See https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification
if (jitsiAuth === JITSI_OPENIDTOKEN_JWT_AUTH) { if (jitsiAuth === JITSI_OPENIDTOKEN_JWT_AUTH) {
// Request credentials, give callback to continue when received // Request credentials, give callback to continue when received
widgetApi.requestOpenIDCredentials(credentialsResponseCallback); // TODO: Implement in widget API
//widgetApi.requestOpenIDCredentials(credentialsResponseCallback);
} else { } else {
enableJoinButton(); enableJoinButton();
} }