Fix space setting public/private join rule switch

This commit is contained in:
Michael Telatynski 2021-03-25 09:41:05 +00:00
parent d705e3020f
commit e31fc91a03

View file

@ -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")}
/> />