Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes issue with multiple room query parameters added to bosh url

hristoterezov6b5f6ec7044a
diff --git a/connection.js b/connection.js
index 97fa602d8a..d5f4054483 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(