From d695cc94193cd65c7b559aec5d0b926e92cc71af Mon Sep 17 00:00:00 2001
From: ankur12-1610
Date: Sun, 24 Jul 2022 16:23:27 +0530
Subject: [PATCH] Resolved the nits and added the knocking svg
Signed-off-by: ankur12-1610
---
src/components/views/dialogs/CreateRoomDialog.tsx | 8 +++-----
src/components/views/elements/JoinRuleDropdown.tsx | 2 +-
src/i18n/strings/en_EN.json | 5 ++++-
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/components/views/dialogs/CreateRoomDialog.tsx b/src/components/views/dialogs/CreateRoomDialog.tsx
index 003fb992970a..8f66a2163387 100644
--- a/src/components/views/dialogs/CreateRoomDialog.tsx
+++ b/src/components/views/dialogs/CreateRoomDialog.tsx
@@ -42,7 +42,7 @@ interface IProps {
defaultName?: string;
parentSpace?: Room;
defaultEncrypted?: boolean;
- onFinished(proceed: boolean, opts?: IOpts): void;
+ onFinished(proceed: boolean, opts?: IOpts): void;
}
interface IState {
@@ -75,8 +75,6 @@ export default class CreateRoomDialog extends React.Component {
joinRule = JoinRule.Public;
} else if (this.supportsRestricted) {
joinRule = JoinRule.Restricted;
- } else if (this.knockingEnabled) {
- joinRule = JoinRule.Knock;
}
this.state = {
@@ -276,7 +274,7 @@ export default class CreateRoomDialog extends React.Component {
;
} else if (this.state.joinRule === JoinRule.Knock && this.knockingEnabled) {
publicPrivateLabel =
- { _t("Anyone can knock on this room to join.") }
+ { _t("This room type requires users to be granted access in order to join.") }
{ _t("You can change this at any time from room settings.") }
;
@@ -358,7 +356,7 @@ export default class CreateRoomDialog extends React.Component {
Learn more.": "Threads help keep conversations on-topic and easy to track. Learn more.",
@@ -2465,6 +2467,7 @@
"Anyone will be able to find and join this room, not just members of .": "Anyone will be able to find and join this room, not just members of .",
"Anyone will be able to find and join this room.": "Anyone will be able to find and join this room.",
"Only people invited will be able to find and join this room.": "Only people invited will be able to find and join this room.",
+ "This room type requires users to be granted access in order to join.": "This room type requires users to be granted access in order to join.",
"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.",
"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.",
"Your server requires encryption to be enabled in private rooms.": "Your server requires encryption to be enabled in private rooms.",
@@ -2478,7 +2481,7 @@
"Topic (optional)": "Topic (optional)",
"Room visibility": "Room visibility",
"Private room (invite only)": "Private room (invite only)",
- "Anyone can knock to join" : "Anyone can knock to join",
+ "Ask to join (Anyone can knock to join)": "Ask to join (Anyone can knock to join)",
"Visible to space members": "Visible to space members",
"Block anyone not part of %(serverName)s from ever joining this room.": "Block anyone not part of %(serverName)s from ever joining this room.",
"Create video room": "Create video room",