Update matrix-send-message.js

This commit is contained in:
Patrick Kranz 2025-01-09 15:12:09 +01:00 committed by GitHub
parent 6bbd1d5119
commit 2059f8455d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,7 @@ module.exports = function(RED) {
} }
if(msgFormat === 'msg.format') { if(msgFormat === 'msg.format') {
if(!msg.format) { if(!Object.keys(msg).includes(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;
} }