fix: Lobby display name set when preJoin is disabled. Fixes #8415.

This commit is contained in:
damencho 2021-01-25 12:06:51 -06:00 committed by Дамян Минков
parent 1cf7a361e9
commit f1e06bff7b
1 changed files with 11 additions and 1 deletions

View File

@ -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));
};