feat(prejoin) add unsafe room name warning

This commit is contained in:
Gabriel Borlea
2023-05-09 21:04:58 +03:00
committed by GitHub
parent b705c63a65
commit a112d38943
28 changed files with 433 additions and 18 deletions

View File

@@ -6,6 +6,7 @@ import { IconExclamationTriangle } from '../../../base/icons/svg';
import Label from '../../../base/label/components/web/Label';
import { COLORS } from '../../../base/label/constants';
import Tooltip from '../../../base/tooltip/components/Tooltip';
import getUnsafeRoomText from '../../../base/util/getUnsafeRoomText.web';
import AbstractInsecureRoomNameLabel, { _mapStateToProps } from '../AbstractInsecureRoomNameLabel';
/**
@@ -20,7 +21,7 @@ class InsecureRoomNameLabel extends AbstractInsecureRoomNameLabel {
_render() {
return (
<Tooltip
content = { this.props.t('security.insecureRoomNameWarning') }
content = { getUnsafeRoomText(this.props.t, 'meeting') }
position = 'bottom'>
<Label
color = { COLORS.red }