Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2dd683a

Browse files
authored
Adjust encryption copy when creating a video room (#8989)
* Adjust encryption copy when creating a video room * Adjust wording
1 parent 8311bdd commit 2dd683a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/components/views/dialogs/CreateRoomDialog.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
222222
render() {
223223
const isVideoRoom = this.props.type === RoomType.ElementVideo;
224224

225-
let aliasField;
225+
let aliasField: JSX.Element;
226226
if (this.state.joinRule === JoinRule.Public) {
227227
const domain = MatrixClientPeg.get().getDomain();
228228
aliasField = (
@@ -274,12 +274,14 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
274274
</p>;
275275
}
276276

277-
let e2eeSection;
277+
let e2eeSection: JSX.Element;
278278
if (this.state.joinRule !== JoinRule.Public) {
279-
let microcopy;
279+
let microcopy: string;
280280
if (privateShouldBeEncrypted()) {
281281
if (this.state.canChangeEncryption) {
282-
microcopy = _t("You can't disable this later. Bridges & most bots won't work yet.");
282+
microcopy = isVideoRoom
283+
? _t("You can't disable this later. The room will be encrypted but the embedded call will not.")
284+
: _t("You can't disable this later. Bridges & most bots won't work yet.");
283285
} else {
284286
microcopy = _t("Your server requires encryption to be enabled in private rooms.");
285287
}
@@ -312,7 +314,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
312314
);
313315
}
314316

315-
let title;
317+
let title: string;
316318
if (isVideoRoom) {
317319
title = _t("Create a video room");
318320
} else if (this.props.parentSpace) {

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@
24452445
"Anyone will be able to find and join this room, not just members of <SpaceName/>.": "Anyone will be able to find and join this room, not just members of <SpaceName/>.",
24462446
"Anyone will be able to find and join this room.": "Anyone will be able to find and join this room.",
24472447
"Only people invited will be able to find and join this room.": "Only people invited will be able to find and join this room.",
2448+
"You can't disable this later. The room will be encrypted but the embedded call will not.": "You can't disable this later. The room will be encrypted but the embedded call will not.",
24482449
"You can't disable this later. Bridges & most bots won't work yet.": "You can't disable this later. Bridges & most bots won't work yet.",
24492450
"Your server requires encryption to be enabled in private rooms.": "Your server requires encryption to be enabled in private rooms.",
24502451
"Enable end-to-end encryption": "Enable end-to-end encryption",

0 commit comments

Comments
 (0)