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:
parent
e77679d025
commit
31348179d4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue