Adjust encryption copy when creating a video room (#8989)
* Adjust encryption copy when creating a video room * Adjust wording
This commit is contained in:
parent
8311bdd263
commit
2dd683a42f
2 changed files with 8 additions and 5 deletions
|
@ -222,7 +222,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
render() {
|
||||
const isVideoRoom = this.props.type === RoomType.ElementVideo;
|
||||
|
||||
let aliasField;
|
||||
let aliasField: JSX.Element;
|
||||
if (this.state.joinRule === JoinRule.Public) {
|
||||
const domain = MatrixClientPeg.get().getDomain();
|
||||
aliasField = (
|
||||
|
@ -274,12 +274,14 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
</p>;
|
||||
}
|
||||
|
||||
let e2eeSection;
|
||||
let e2eeSection: JSX.Element;
|
||||
if (this.state.joinRule !== JoinRule.Public) {
|
||||
let microcopy;
|
||||
let microcopy: string;
|
||||
if (privateShouldBeEncrypted()) {
|
||||
if (this.state.canChangeEncryption) {
|
||||
microcopy = _t("You can't disable this later. Bridges & most bots won't work yet.");
|
||||
microcopy = isVideoRoom
|
||||
? _t("You can't disable this later. The room will be encrypted but the embedded call will not.")
|
||||
: _t("You can't disable this later. Bridges & most bots won't work yet.");
|
||||
} else {
|
||||
microcopy = _t("Your server requires encryption to be enabled in private rooms.");
|
||||
}
|
||||
|
@ -312,7 +314,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
);
|
||||
}
|
||||
|
||||
let title;
|
||||
let title: string;
|
||||
if (isVideoRoom) {
|
||||
title = _t("Create a video room");
|
||||
} else if (this.props.parentSpace) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue