Avoid flashing the Jitsi prejoin screen at the user before skipping it (#21665)

This commit is contained in:
Robin 2022-04-05 11:32:26 -04:00 committed by GitHub
parent b79133c694
commit eab8a19ec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -56,6 +56,10 @@ body, html {
position: absolute; position: absolute;
height: 100%; height: 100%;
width: 100%; width: 100%;
// Hidden by default to avoid flashing the prejoin screen at the user when
// we're supposed to skip it anyways
visibility: hidden;
} }
.joinConferenceFloating { .joinConferenceFloating {

View file

@ -129,11 +129,9 @@ const ack = (ev: CustomEvent<IWidgetApiRequest>) => widgetApi.transport.reply(ev
skipOurWelcomeScreen = (new SnakedObject<IConfigOptions["jitsi_widget"]>(jitsiConfig)) skipOurWelcomeScreen = (new SnakedObject<IConfigOptions["jitsi_widget"]>(jitsiConfig))
.get("skip_built_in_welcome_screen") || isVideoChannel; .get("skip_built_in_welcome_screen") || isVideoChannel;
// If we're meant to skip our screen, skip to the part where we show Jitsi instead of us. // Either reveal the prejoin screen, or skip straight to Jitsi depending on the config.
// We don't set up the call yet though as this might lead to failure without the widget API. // We don't set up the call yet though as this might lead to failure without the widget API.
if (skipOurWelcomeScreen) { toggleConferenceVisibility(skipOurWelcomeScreen);
toggleConferenceVisibility(true);
}
if (widgetApi) { if (widgetApi) {
await readyPromise; await readyPromise;