Fix space setting public/private join rule switch
This commit is contained in:
parent
d705e3020f
commit
e31fc91a03
1 changed files with 2 additions and 2 deletions
|
@ -126,8 +126,8 @@ const SpaceSettingsDialog: React.FC<IProps> = ({ matrixClient: cli, space, onFin
|
||||||
<div>
|
<div>
|
||||||
{ _t("Make this space private") }
|
{ _t("Make this space private") }
|
||||||
<ToggleSwitch
|
<ToggleSwitch
|
||||||
checked={joinRule === "private"}
|
checked={joinRule !== "public"}
|
||||||
onChange={checked => setJoinRule(checked ? "private" : "invite")}
|
onChange={checked => setJoinRule(checked ? "invite" : "public")}
|
||||||
disabled={!canSetJoinRule}
|
disabled={!canSetJoinRule}
|
||||||
aria-label={_t("Make this space private")}
|
aria-label={_t("Make this space private")}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue