From f1e06bff7b1a11dcc1458d37eb35baf521bd7dfb Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 25 Jan 2021 12:06:51 -0600 Subject: [PATCH] fix: Lobby display name set when preJoin is disabled. Fixes #8415. --- react/features/lobby/actions.web.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/react/features/lobby/actions.web.js b/react/features/lobby/actions.web.js index ca52c29b4..fa7a3874a 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)); };