From df24e56de88add39343e7fa107ffbaee8aa72d75 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 6 Mar 2019 17:46:28 +0000 Subject: [PATCH] fix xmpp node stanzas from --- social/xmpp/92-xmpp.js | 2 +- social/xmpp/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/social/xmpp/92-xmpp.js b/social/xmpp/92-xmpp.js index 1dfb35a8..c0979ca8 100644 --- a/social/xmpp/92-xmpp.js +++ b/social/xmpp/92-xmpp.js @@ -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]); } } diff --git a/social/xmpp/package.json b/social/xmpp/package.json index 37d24572..d957f7a5 100644 --- a/social/xmpp/package.json +++ b/social/xmpp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-xmpp", - "version" : "0.2.2", + "version" : "0.2.3", "description" : "A Node-RED node to talk to an XMPP server", "dependencies" : { "simple-xmpp" : "^1.3.0"