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:
parent
b91f61d56f
commit
df24e56de8
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user