1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

fix xmpp node stanzas from

This commit is contained in:
Dave Conway-Jones 2019-03-06 17:46:28 +00:00
parent b91f61d56f
commit df24e56de8
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ module.exports = function(RED) {
msg.topic = stanza.attrs.from msg.topic = stanza.attrs.from
} }
else { msg.topic = ids[0]; } else { msg.topic = ids[0]; }
if (!node.join && ((node.from === "") || (node.from === from))) { if (!node.join && ((node.from === "") || (node.from === stanza.attrs.from))) {
node.send([msg,null]); node.send([msg,null]);
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-xmpp", "name" : "node-red-node-xmpp",
"version" : "0.2.2", "version" : "0.2.3",
"description" : "A Node-RED node to talk to an XMPP server", "description" : "A Node-RED node to talk to an XMPP server",
"dependencies" : { "dependencies" : {
"simple-xmpp" : "^1.3.0" "simple-xmpp" : "^1.3.0"