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, id: string,
password: string, password: string,
conference: Object) { conference: Object) {
return (dispatch: Dispatch<any>, getState: Function) => { return (dispatch: Dispatch<any>) => {
const { password: roomPassword }
= getState()['features/base/conference'];
const process const process
= conference.authenticateAndUpgradeRole({ = conference.authenticateAndUpgradeRole({
id, id,
password, password,
roomPassword,
onLoginSuccessful() { onLoginSuccessful() {
// When the login succeeds, the process has completed half // When the login succeeds, the process has completed half