Skip to content

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

fix(visitors): Fixes visitors to work with anonymous domain.

damencho47d261e45c33
diff --git a/react/features/base/conference/functions.ts b/react/features/base/conference/functions.ts
index 0b925b9ee3..b981e27161 100644
--- a/react/features/base/conference/functions.ts
+++ b/react/features/base/conference/functions.ts
@@ -304,10 +304,7 @@ export function getVisitorOptions(stateful: IStateful, params: Array<string>) {
// and the visitor will be redirected back to a vnode from jicofo
if (config.oldConfig && username) {
return {
- hosts: {
- domain: config.oldConfig.hosts.domain,
- muc: config.oldConfig.hosts.muc
- },
+ hosts: config.oldConfig.hosts,
focusUserJid: focusJid,
disableLocalStats: false,
bosh: config.oldConfig.bosh && appendURLParam(config.oldConfig.bosh, 'customusername', username),
@@ -323,8 +320,7 @@ export function getVisitorOptions(stateful: IStateful, params: Array<string>) {
const oldConfig = {
hosts: {
- domain: config.hosts.domain,
- muc: config.hosts.muc
+ domain: ''
},
focusUserJid: config.focusUserJid,
bosh: config.bosh,
@@ -332,6 +328,9 @@ export function getVisitorOptions(stateful: IStateful, params: Array<string>) {
websocket: config.websocket
};
+ // copy original hosts, to make sure we do not use a modified one later
+ Object.assign(oldConfig.hosts, config.hosts);
+
const domain = `${vnode}.meet.jitsi`;
return {