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

Commit 98f3a51

Browse files
authored
Merge pull request #6492 from matrix-org/t3chguy/fix/18275.1
2 parents 9707797 + 52e5086 commit 98f3a51

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/views/dialogs/CreateRoomDialog.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
250250
&nbsp;
251251
{ _t("You can change this at any time from room settings.") }
252252
</p>;
253-
} else if (this.state.joinRule === JoinRule.Public) {
253+
} else if (this.state.joinRule === JoinRule.Public && this.props.parentSpace) {
254254
publicPrivateLabel = <p>
255255
{ _t(
256256
"Anyone will be able to find and join this room, not just members of <SpaceName/>.", {}, {
@@ -260,6 +260,12 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
260260
&nbsp;
261261
{ _t("You can change this at any time from room settings.") }
262262
</p>;
263+
} else if (this.state.joinRule === JoinRule.Public) {
264+
publicPrivateLabel = <p>
265+
{ _t("Anyone will be able to find and join this room.") }
266+
&nbsp;
267+
{ _t("You can change this at any time from room settings.") }
268+
</p>;
263269
} else if (this.state.joinRule === JoinRule.Invite) {
264270
publicPrivateLabel = <p>
265271
{ _t(

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,7 @@
22002200
"Everyone in <SpaceName/> will be able to find and join this room.": "Everyone in <SpaceName/> will be able to find and join this room.",
22012201
"You can change this at any time from room settings.": "You can change this at any time from room settings.",
22022202
"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/>.",
2203+
"Anyone will be able to find and join this room.": "Anyone will be able to find and join this room.",
22032204
"Only people invited will be able to find and join this room.": "Only people invited will be able to find and join this room.",
22042205
"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.",
22052206
"Your server requires encryption to be enabled in private rooms.": "Your server requires encryption to be enabled in private rooms.",

0 commit comments

Comments
 (0)