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: Fixes #9869 Lobby and wrong password case.

Дамян Минков432c4ada7070
diff --git a/react/features/lobby/components/AbstractLobbyScreen.js b/react/features/lobby/components/AbstractLobbyScreen.js
index f2ced30c01..e519093267 100644
--- a/react/features/lobby/components/AbstractLobbyScreen.js
+++ b/react/features/lobby/components/AbstractLobbyScreen.js
@@ -2,7 +2,7 @@
// eslint-disable-next-line no-unused-vars
import React, { PureComponent } from 'react';
-import { getConferenceName } from '../../base/conference';
+import { conferenceWillJoin, getConferenceName } from '../../base/conference';
import { getFeatureFlag, INVITE_ENABLED } from '../../base/flags';
import { getLocalParticipant } from '../../base/participants';
import { getFieldValue } from '../../base/react';
@@ -33,6 +33,11 @@ export type Props = {
*/
_meetingName: string,
+ /**
+ * The members only conference if any,
+ */
+ _membersOnlyConference: Object,
+
/**
* The email of the participant about to knock/join.
*/
@@ -288,6 +293,9 @@ export default class AbstractLobbyScreen<P: Props = Props> extends PureComponent
screenState: this.state.displayName ? SCREEN_STATES.VIEW : SCREEN_STATES.EDIT
});
this.props.dispatch(setPasswordJoinFailed(false));
+
+ // let's return to the correct state after password failed
+ this.props.dispatch(conferenceWillJoin(this.props._membersOnlyConference));
}
_onSwitchToPasswordMode: () => void;
@@ -387,11 +395,13 @@ export function _mapStateToProps(state: Object): $Shape<Props> {
const { iAmSipGateway } = state['features/base/config'];
const showCopyUrlButton = inviteEnabledFlag || !disableInviteFunctions;
const deviceStatusVisible = isDeviceStatusVisible(state);
+ const { membersOnly } = state['features/base/conference'];
return {
_deviceStatusVisible: deviceStatusVisible,
_knocking: knocking,
_meetingName: getConferenceName(state),
+ _membersOnlyConference: membersOnly,
_participantEmail: localParticipant?.email,
_participantId: participantId,
_participantName: localParticipant?.name,