fix(auth) simplify auth-and-upgrade procedure

It's not necessary to perform a full join, sending a conference IQ is
enough.
This commit is contained in:
Saúl Ibarra Corretgé 2022-06-21 14:12:16 +02:00 committed by Saúl Ibarra Corretgé
parent e77679d025
commit 31348179d4
1 changed files with 1 additions and 4 deletions

View File

@ -29,14 +29,11 @@ export function authenticateAndUpgradeRole(
id: string,
password: string,
conference: Object) {
return (dispatch: Dispatch<any>, getState: Function) => {
const { password: roomPassword }
= getState()['features/base/conference'];
return (dispatch: Dispatch<any>) => {
const process
= conference.authenticateAndUpgradeRole({
id,
password,
roomPassword,
onLoginSuccessful() {
// When the login succeeds, the process has completed half