mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	correctly join a chat room (#663)
This commit is contained in:
		| @@ -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 }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user