{ _t( - "Private rooms can be found and joined by invitation only. Public rooms can be " + - "found and joined by anyone.", - ) }
; + let publicPrivateLabel: JSX.Element; if (CommunityPrototypeStore.instance.getSelectedCommunityId()) { - publicPrivateLabel ={ _t( - "Private rooms can be found and joined by invitation only. Public rooms can be " + - "found and joined by anyone in this community.", - ) }
; + publicPrivateLabel =+ { _t( + "Private rooms can be found and joined by invitation only. Public rooms can be " + + "found and joined by anyone in this community.", + ) } +
; + } else if (this.state.joinRule === JoinRule.Restricted) { + publicPrivateLabel =
+ { _t(
+ "Everyone in
+ { _t(
+ "Anyone will be able to find and join this room, not just members of
+ { _t( + "Only people invited will be able to find and join this room.", + ) } + + { _t("You can change this at any time from room settings.") } +
; } let e2eeSection; - if (!this.state.isPublic) { + if (this.state.joinRule !== JoinRule.Public) { let microcopy; if (privateShouldBeEncrypted()) { if (this.state.canChangeEncryption) { @@ -273,17 +308,31 @@ export default class CreateRoomDialog extends React.Component