From 6b5f6ec7044ae7fc1584b757ce08ecc072eac8c0 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Mon, 2 May 2016 14:22:02 -0500 Subject: [PATCH] Fixes issue with multiple room query parameters added to bosh url --- connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.js b/connection.js index 97fa602d8..d5f405448 100644 --- a/connection.js +++ b/connection.js @@ -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(