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: Lobby display name set when preJoin is disabled. Fixes #8415.

damenchof1e06bff7b1a
diff --git a/react/features/lobby/actions.web.js b/react/features/lobby/actions.web.js
index ca52c29b4c..fa7a3874ae 100644
--- a/react/features/lobby/actions.web.js
+++ b/react/features/lobby/actions.web.js
@@ -3,7 +3,12 @@
import { type Dispatch } from 'redux';
import { appNavigate, maybeRedirectToWelcomePage } from '../app/actions';
-import { conferenceWillJoin, getCurrentConference, setPassword } from '../base/conference';
+import {
+ conferenceWillJoin,
+ getCurrentConference,
+ sendLocalParticipant,
+ setPassword
+} from '../base/conference';
import { hideDialog, openDialog } from '../base/dialog';
import { getLocalParticipant } from '../base/participants';
@@ -183,6 +188,11 @@ export function startKnocking() {
const localParticipant = getLocalParticipant(state);
dispatch(conferenceWillJoin(membersOnly));
+
+ // We need to update the conference object with the current display name, if approved
+ // we want to send that display name, it was not updated in case when pre-join is disabled
+ sendLocalParticipant(state, membersOnly);
+
membersOnly.joinLobby(localParticipant.name, localParticipant.email);
dispatch(setKnockingState(true));
};