mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2025-04-20 04:53:06 -06:00
Issue #97 Room Settings
- Remove unused returnValues config option for Room State Events node
This commit is contained in:
parent
611e23b845
commit
e7e0f2967b
@ -12,19 +12,6 @@
|
||||
<input type="text" id="node-input-roomId" placeholder="msg.topic">
|
||||
<pre class="form-tips" id="node-input-roomId-error" style="color: #721c24;background-color: #f8d7da;border-color: #f5c6cb;margin-bottom: 12px;margin-top: 12px;display:none;"></pre>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<input
|
||||
type="checkbox"
|
||||
id="node-input-returnValues"
|
||||
style="width: auto; margin-left: 105px; vertical-align: top"
|
||||
/>
|
||||
<label for="node-input-returnValues" style="width: auto">
|
||||
Return current name, topic, and avatar in <code style="white-space: normal;">msg.payload</code>
|
||||
</label>
|
||||
<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>, <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 class="form-row" style="margin-bottom:0;">
|
||||
<label><i class="fa fa-list"></i> <span data-i18n="change.label.rules"></span></label>
|
||||
</div>
|
||||
@ -134,7 +121,6 @@
|
||||
server: { value: "", type: "matrix-server-config" },
|
||||
roomId: { value: null },
|
||||
reason: { value: null },
|
||||
returnValues: { value: true },
|
||||
rules: {
|
||||
value: defaultRules,
|
||||
validate: function(rules, opt) {
|
||||
|
@ -7,7 +7,6 @@ module.exports = function(RED) {
|
||||
this.name = n.name;
|
||||
this.server = RED.nodes.getNode(n.server);
|
||||
this.roomId = n.roomId;
|
||||
this.returnValues = n.returnValues;
|
||||
this.rules = n.rules;
|
||||
|
||||
if (!node.server) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user