Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Hides pre join screen in few login window cases.

Дамян Минковf6131267760b
diff --git a/connection.js b/connection.js
index 547705f6d3..bed4aed675 100644
--- a/connection.js
+++ b/connection.js
@@ -20,7 +20,10 @@ import {
import { isFatalJitsiConnectionError } from './react/features/base/lib-jitsi-meet/functions';
import { getCustomerDetails } from './react/features/jaas/actions.any';
import { isVpaasMeeting, getJaasJWT } from './react/features/jaas/functions';
-import { setPrejoinDisplayNameRequired } from './react/features/prejoin/actions';
+import {
+ setPrejoinDisplayNameRequired,
+ setPrejoinPageVisibility
+} from './react/features/prejoin/actions';
const logger = Logger.getLogger(__filename);
/**
@@ -244,6 +247,7 @@ function requestAuth(roomName) {
resolve(connection);
};
+ APP.store.dispatch(setPrejoinPageVisibility(false));
APP.store.dispatch(
openDialog(LoginDialog, { onSuccess,
roomName })
diff --git a/modules/UI/authentication/AuthHandler.js b/modules/UI/authentication/AuthHandler.js
index eb79ecb69c..f2b03fc0fe 100644
--- a/modules/UI/authentication/AuthHandler.js
+++ b/modules/UI/authentication/AuthHandler.js
@@ -17,6 +17,7 @@ import {
import { getReplaceParticipant } from '../../../react/features/base/config/functions';
import { isDialogOpen } from '../../../react/features/base/dialog';
import { setJWT } from '../../../react/features/base/jwt';
+import { setPrejoinPageVisibility } from '../../../react/features/prejoin';
import UIUtil from '../util/UIUtil';
import ExternalLoginDialog from './LoginDialog';
@@ -180,6 +181,7 @@ function authenticate(room: Object, lockPassword: string) {
if (isTokenAuthEnabled(config) || room.isExternalAuthEnabled()) {
doExternalAuth(room, lockPassword);
} else {
+ APP.store.dispatch(setPrejoinPageVisibility(false));
APP.store.dispatch(openLoginDialog());
}
}
diff --git a/react/features/authentication/middleware.native.js b/react/features/authentication/middleware.native.js
index 338ab00b2f..421e3ba1cc 100644
--- a/react/features/authentication/middleware.native.js
+++ b/react/features/authentication/middleware.native.js
@@ -15,6 +15,7 @@ import {
JitsiConnectionErrors
} from '../base/lib-jitsi-meet';
import { MiddlewareRegistry } from '../base/redux';
+import { setPrejoinPageVisibility } from '../prejoin';
import {
CANCEL_LOGIN,
@@ -120,6 +121,7 @@ MiddlewareRegistry.register(store => next => action => {
&& error.name === JitsiConnectionErrors.PASSWORD_REQUIRED
&& typeof error.recoverable === 'undefined') {
error.recoverable = true;
+ store.dispatch(setPrejoinPageVisibility(false));
store.dispatch(openLoginDialog());
}
break;