|
@@ -40,7 +40,6 @@ import XMPP from './modules/xmpp/xmpp';
|
40
|
40
|
* @param {string} options.id - XMPP user's ID to log in. For example,
|
41
|
41
|
* user@xmpp-server.com.
|
42
|
42
|
* @param {string} options.password - XMPP user's password to log in with.
|
43
|
|
- * @param {string} [options.roomPassword] - The password to join the MUC with.
|
44
|
43
|
* @param {Function} [options.onLoginSuccessful] - Callback called when logging
|
45
|
44
|
* into the XMPP server was successful. The next step will be to obtain a new
|
46
|
45
|
* session ID from Jicofo and join the MUC using it which will effectively
|
|
@@ -65,10 +64,7 @@ export default function authenticateAndUpgradeRole({
|
65
|
64
|
|
66
|
65
|
// 2. Let the API client/consumer know as soon as the XMPP user has been
|
67
|
66
|
// successfully logged in.
|
68
|
|
- onLoginSuccessful,
|
69
|
|
-
|
70
|
|
- // 3. Join the MUC.
|
71
|
|
- roomPassword
|
|
67
|
+ onLoginSuccessful
|
72
|
68
|
}) {
|
73
|
69
|
let canceled = false;
|
74
|
70
|
let rejectPromise;
|
|
@@ -112,9 +108,8 @@ export default function authenticateAndUpgradeRole({
|
112
|
108
|
}
|
113
|
109
|
|
114
|
110
|
// At this point we should have the new session ID
|
115
|
|
- // stored in the settings. Jicofo will allow to join the
|
116
|
|
- // room.
|
117
|
|
- this.join(roomPassword);
|
|
111
|
+ // stored in the settings. Send a new conference IQ.
|
|
112
|
+ this.room.moderator.allocateConferenceFocus();
|
118
|
113
|
|
119
|
114
|
resolve();
|
120
|
115
|
})
|