fix: Lobby display name set when preJoin is disabled. Fixes #8415.
This commit is contained in:
parent
1cf7a361e9
commit
f1e06bff7b
|
@ -3,7 +3,12 @@
|
||||||
import { type Dispatch } from 'redux';
|
import { type Dispatch } from 'redux';
|
||||||
|
|
||||||
import { appNavigate, maybeRedirectToWelcomePage } from '../app/actions';
|
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 { hideDialog, openDialog } from '../base/dialog';
|
||||||
import { getLocalParticipant } from '../base/participants';
|
import { getLocalParticipant } from '../base/participants';
|
||||||
|
|
||||||
|
@ -183,6 +188,11 @@ export function startKnocking() {
|
||||||
const localParticipant = getLocalParticipant(state);
|
const localParticipant = getLocalParticipant(state);
|
||||||
|
|
||||||
dispatch(conferenceWillJoin(membersOnly));
|
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);
|
membersOnly.joinLobby(localParticipant.name, localParticipant.email);
|
||||||
dispatch(setKnockingState(true));
|
dispatch(setKnockingState(true));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue