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
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ module.exports = function(RED) {
msg.topic = stanza.attrs.from
}
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]);
}
}