|
@@ -96,13 +96,14 @@ function connect(id, password, roomName) {
|
96
|
96
|
* Show Authentication Dialog and try to connect with new credentials.
|
97
|
97
|
* If failed to connect because of PASSWORD_REQUIRED error
|
98
|
98
|
* then ask for password again.
|
|
99
|
+ * @param {string} [roomName]
|
99
|
100
|
* @returns {Promise<JitsiConnection>}
|
100
|
101
|
*/
|
101
|
|
-function requestAuth() {
|
|
102
|
+function requestAuth(roomName) {
|
102
|
103
|
return new Promise(function (resolve, reject) {
|
103
|
104
|
let authDialog = LoginDialog.showAuthDialog(
|
104
|
105
|
function (id, password) {
|
105
|
|
- connect(id, password).then(function (connection) {
|
|
106
|
+ connect(id, password, roomName).then(function (connection) {
|
106
|
107
|
authDialog.close();
|
107
|
108
|
resolve(connection);
|
108
|
109
|
}, function (err) {
|
|
@@ -156,7 +157,7 @@ export function openConnection({id, password, retry, roomName}) {
|
156
|
157
|
if (config.token) {
|
157
|
158
|
throw err;
|
158
|
159
|
} else {
|
159
|
|
- return requestAuth();
|
|
160
|
+ return requestAuth(roomName);
|
160
|
161
|
}
|
161
|
162
|
} else {
|
162
|
163
|
throw err;
|