Skip to content

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

unsafe-room: hide unsafe room label if a password or lobby are set

Saúl Ibarra Corretgé8efd0f0829f9
diff --git a/react/features/conference/components/AbstractInsecureRoomNameLabel.js b/react/features/conference/components/AbstractInsecureRoomNameLabel.js
index 5bcd446e2d..30b4bf2cc9 100644
--- a/react/features/conference/components/AbstractInsecureRoomNameLabel.js
+++ b/react/features/conference/components/AbstractInsecureRoomNameLabel.js
@@ -49,10 +49,13 @@ export default class AbstractInsecureRoomNameLabel extends PureComponent<Props>
* @returns {Props}
*/
export function _mapStateToProps(state: Object): $Shape<Props> {
- const { room } = state['features/base/conference'];
+ const { locked, room } = state['features/base/conference'];
+ const { lobbyEnabled } = state['features/lobby'];
const { enableInsecureRoomNameWarning = false } = state['features/base/config'];
return {
- _visible: enableInsecureRoomNameWarning && room && isInsecureRoomName(room)
+ _visible: enableInsecureRoomNameWarning
+ && room && isInsecureRoomName(room)
+ && !(lobbyEnabled || Boolean(locked))
};
}