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,
|
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
|
||||||
|
|
Loading…
Reference in New Issue