|
@@ -49,10 +49,13 @@ export default class AbstractInsecureRoomNameLabel extends PureComponent<Props>
|
49
|
49
|
* @returns {Props}
|
50
|
50
|
*/
|
51
|
51
|
export function _mapStateToProps(state: Object): $Shape<Props> {
|
52
|
|
- const { room } = state['features/base/conference'];
|
|
52
|
+ const { locked, room } = state['features/base/conference'];
|
|
53
|
+ const { lobbyEnabled } = state['features/lobby'];
|
53
|
54
|
const { enableInsecureRoomNameWarning = false } = state['features/base/config'];
|
54
|
55
|
|
55
|
56
|
return {
|
56
|
|
- _visible: enableInsecureRoomNameWarning && room && isInsecureRoomName(room)
|
|
57
|
+ _visible: enableInsecureRoomNameWarning
|
|
58
|
+ && room && isInsecureRoomName(room)
|
|
59
|
+ && !(lobbyEnabled || Boolean(locked))
|
57
|
60
|
};
|
58
|
61
|
}
|