Fixes issue with multiple room query parameters added to bosh url
This commit is contained in:
parent
0970fdd7e7
commit
6b5f6ec704
|
@ -52,11 +52,11 @@ function checkForAttachParametersAndConnect(id, password, connection) {
|
||||||
*/
|
*/
|
||||||
function connect(id, password, roomName) {
|
function connect(id, password, roomName) {
|
||||||
|
|
||||||
let connectionConfig = config;
|
let connectionConfig = Object.assign({}, config);
|
||||||
|
|
||||||
connectionConfig.bosh += '?room=' + roomName;
|
connectionConfig.bosh += '?room=' + roomName;
|
||||||
let connection
|
let connection
|
||||||
= new JitsiMeetJS.JitsiConnection(null, config.token, config);
|
= new JitsiMeetJS.JitsiConnection(null, config.token, connectionConfig);
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
connection.addEventListener(
|
connection.addEventListener(
|
||||||
|
|
Loading…
Reference in New Issue