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:
parent
8919edf0e6
commit
bf94d320a9
@ -73,7 +73,7 @@ module.exports = function(RED) {
|
|||||||
node.status({fill:"green",shape:"dot",text:"connected"});
|
node.status({fill:"green",shape:"dot",text:"connected"});
|
||||||
if ((node.join) && (node.from !== "")) {
|
if ((node.join) && (node.from !== "")) {
|
||||||
// disable chat history
|
// disable chat history
|
||||||
var to = node.to+'/'+node.nick;
|
var to = node.from+'/'+node.nick;
|
||||||
var stanza = new xmpp.Element('presence', {"to": to}).
|
var stanza = new xmpp.Element('presence', {"to": to}).
|
||||||
c('x', { xmlns: 'http://jabber.org/protocol/muc' }).
|
c('x', { xmlns: 'http://jabber.org/protocol/muc' }).
|
||||||
c('history', { maxstanzas:0, seconds:1 });
|
c('history', { maxstanzas:0, seconds:1 });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user