Issue #97 Room Settings

- fix join_allow_rules for Room Setting node not getting correctly
- update Room Setting docs
This commit is contained in:
Skylar Sadlier 2023-10-15 14:45:16 -06:00
parent c833a40a84
commit 9d050a0d44
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
Return current name, topic, and avatar in <code style="white-space: normal;">msg.payload</code> Return current name, topic, and avatar in <code style="white-space: normal;">msg.payload</code>
</label> </label>
<div class="form-tips" style="margin-bottom: 12px;"> <div class="form-tips" style="margin-bottom: 12px;">
You can set the payload to <code style="white-space: normal;">null</code>, <code style="white-space: normal;">undefined</code>, or <code style="white-space: normal;">false</code> to just get the current settings without changing them. You can set the payload to <code style="white-space: normal;">null</code>, <code style="white-space: normal;">undefined</code>, <code style="white-space: normal;">false</code>, or an object that doesn't contain the keys needed to apply a change so you can just get the current settings without changing them.
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -101,7 +101,7 @@ module.exports = function(RED) {
"aliases": (await node.server.matrixClient.getLocalAliases(msg.topic))?.aliases, "aliases": (await node.server.matrixClient.getLocalAliases(msg.topic))?.aliases,
"guest_access": (await node.server.matrixClient.getStateEvent(msg.topic, "m.room.guest_access", ""))?.guest_access, "guest_access": (await node.server.matrixClient.getStateEvent(msg.topic, "m.room.guest_access", ""))?.guest_access,
"join_rule": join_rules?.join_rule, "join_rule": join_rules?.join_rule,
"join_allow_rules": join_rules?.allow_rules "join_allow_rules": join_rules?.allow
}; };
} }