mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2025-04-20 13:03:12 -06:00
Merge pull request #130 from LokiMidgard/patch-1
Support default plaintext in msg.format
This commit is contained in:
commit
8287f3c08a
@ -127,7 +127,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
|
||||
if(msgFormat === 'msg.format') {
|
||||
if(!msg.format) {
|
||||
if(!Object.hasOwn(msg, 'format')) {
|
||||
node.error("Message format is set to be passed in via msg.format but was not defined", msg);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user