Skip to content

Commit

Permalink
Fixes issue with multiple room query parameters added to bosh url
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov committed May 2, 2016
1 parent 0970fdd commit 6b5f6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ function checkForAttachParametersAndConnect(id, password, connection) {
*/
function connect(id, password, roomName) {

let connectionConfig = config;
let connectionConfig = Object.assign({}, config);

connectionConfig.bosh += '?room=' + roomName;
let connection
= new JitsiMeetJS.JitsiConnection(null, config.token, config);
= new JitsiMeetJS.JitsiConnection(null, config.token, connectionConfig);

return new Promise(function (resolve, reject) {
connection.addEventListener(
Expand Down

0 comments on commit 6b5f6ec

Please sign in to comment.