mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2025-07-08 19:51:13 -06:00
Compare commits
1 Commits
41d0022cf2
...
15c0fefdd0
Author | SHA1 | Date | |
---|---|---|---|
15c0fefdd0 |
@ -13,7 +13,6 @@
|
|||||||
acceptOwnEvents: {"value": false},
|
acceptOwnEvents: {"value": false},
|
||||||
acceptText: {"value": true},
|
acceptText: {"value": true},
|
||||||
acceptEmotes: {"value": true},
|
acceptEmotes: {"value": true},
|
||||||
acceptNotices: {"value": true},
|
|
||||||
acceptStickers: {"value": true},
|
acceptStickers: {"value": true},
|
||||||
acceptReactions: {"value": true},
|
acceptReactions: {"value": true},
|
||||||
acceptFiles: {"value": true},
|
acceptFiles: {"value": true},
|
||||||
@ -67,16 +66,6 @@
|
|||||||
Accept text <code style="text-transform: none;">m.text</code>
|
Accept text <code style="text-transform: none;">m.text</code>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" style="margin-bottom:0;">
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="node-input-acceptNotices"
|
|
||||||
style="width: auto; margin-left: 125px; vertical-align: top"
|
|
||||||
/>
|
|
||||||
<label for="node-input-acceptNotices" style="width: auto">
|
|
||||||
Accept notices <code style="text-transform: none;">m.notice</code>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-row" style="margin-bottom:0;">
|
<div class="form-row" style="margin-bottom:0;">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
@ -10,7 +10,6 @@ module.exports = function(RED) {
|
|||||||
this.acceptOwnEvents = n.acceptOwnEvents;
|
this.acceptOwnEvents = n.acceptOwnEvents;
|
||||||
this.acceptText = n.acceptText;
|
this.acceptText = n.acceptText;
|
||||||
this.acceptEmotes = n.acceptEmotes;
|
this.acceptEmotes = n.acceptEmotes;
|
||||||
this.acceptNotices = n.acceptNotices;
|
|
||||||
this.acceptStickers = n.acceptStickers;
|
this.acceptStickers = n.acceptStickers;
|
||||||
this.acceptReactions = n.acceptReactions;
|
this.acceptReactions = n.acceptReactions;
|
||||||
this.acceptFiles = n.acceptFiles;
|
this.acceptFiles = n.acceptFiles;
|
||||||
@ -70,10 +69,6 @@ module.exports = function(RED) {
|
|||||||
if (!node.acceptEmotes) return;
|
if (!node.acceptEmotes) return;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'm.notice':
|
|
||||||
if (!node.acceptNotices) return;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'm.text':
|
case 'm.text':
|
||||||
if (!node.acceptText) return;
|
if (!node.acceptText) return;
|
||||||
break;
|
break;
|
||||||
|
@ -127,7 +127,7 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(msgFormat === 'msg.format') {
|
if(msgFormat === 'msg.format') {
|
||||||
if(!Object.hasOwn(msg, 'format')) {
|
if(!msg.format) {
|
||||||
node.error("Message format is set to be passed in via msg.format but was not defined", msg);
|
node.error("Message format is set to be passed in via msg.format but was not defined", msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -202,4 +202,4 @@ module.exports = function(RED) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("matrix-send-message", MatrixSendImage);
|
RED.nodes.registerType("matrix-send-message", MatrixSendImage);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user