From bf94d320a97c229d577d2670ef99e3195a72d18e Mon Sep 17 00:00:00 2001 From: Andreas Martens Date: Fri, 10 Jul 2020 12:30:44 +0100 Subject: [PATCH] correctly join a chat room (#663) --- social/xmpp/92-xmpp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social/xmpp/92-xmpp.js b/social/xmpp/92-xmpp.js index 9fab652f..4e302aca 100644 --- a/social/xmpp/92-xmpp.js +++ b/social/xmpp/92-xmpp.js @@ -73,7 +73,7 @@ module.exports = function(RED) { node.status({fill:"green",shape:"dot",text:"connected"}); if ((node.join) && (node.from !== "")) { // disable chat history - var to = node.to+'/'+node.nick; + var to = node.from+'/'+node.nick; var stanza = new xmpp.Element('presence', {"to": to}). c('x', { xmlns: 'http://jabber.org/protocol/muc' }). c('history', { maxstanzas:0, seconds:1 });