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

pull/7075/head
Saúl Ibarra Corretgé 5 years ago committed by Saúl Ibarra Corretgé
parent a49f04f25b
commit 8efd0f0829
  1. 7
      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))
};
}

Loading…
Cancel
Save