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(prejoin) Fix roomname showing for 3rd party prejoin app (#12155)

Horatiu Muresan6e1e6df952a6
diff --git a/react/features/base/conference/functions.js b/react/features/base/conference/functions.js
index ccdccc6738..e6ec7f6baf 100644
--- a/react/features/base/conference/functions.js
+++ b/react/features/base/conference/functions.js
@@ -192,7 +192,7 @@ export function getConferenceName(stateful: Function | Object): string {
|| subject
|| callDisplayName
|| (callee && callee.name)
- || safeStartCase(safeDecodeURIComponent(room));
+ || (room && safeStartCase(safeDecodeURIComponent(room)));
}
/**
diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.js b/react/features/base/premeeting/components/web/PreMeetingScreen.js
index b224b977f4..b9328dfc90 100644
--- a/react/features/base/premeeting/components/web/PreMeetingScreen.js
+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.js
@@ -161,9 +161,11 @@ class PreMeetingScreen extends PureComponent<Props> {
<h1 className = 'title'>
{ title }
</h1>
- <span className = { classes.subtitle }>
- {_roomName}
- </span>
+ { _roomName && (
+ <span className = { classes.subtitle }>
+ {_roomName}
+ </span>
+ )}
{ children }
{ _buttons.length && <Toolbox toolbarButtons = { _buttons } /> }
{ skipPrejoinButton }