diff --git a/pages/explore/manage-room/ChangeJoinRule.js b/pages/explore/manage-room/ChangeJoinRule.js index 1f74eb51..5bb3d3cd 100644 --- a/pages/explore/manage-room/ChangeJoinRule.js +++ b/pages/explore/manage-room/ChangeJoinRule.js @@ -28,7 +28,7 @@ const JoinRuleChanger = ({ roomId, roomName, onCancel }) => { const handleChangeJoinRule = async (e) => { e.preventDefault(); setChangingJoinRule(true); - await matrixClient.sendStateEvent(roomId, 'm.room.join_rules', {}, { join_rule: joinRule }) + await matrixClient.sendStateEvent(roomId, 'm.room.join_rules', { join_rule: joinRule }) .catch((error) => { setErrorMessage(error.data?.error); setJoinRule(currentJoinRule); @@ -36,6 +36,8 @@ const JoinRuleChanger = ({ roomId, roomName, onCancel }) => { setChangingJoinRule(false); }; + console.log(joinRule); + return (

{ t('Change Join Rule for') } { roomName }