mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
263031d6c7
commit
93f6517d30
@ -443,7 +443,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
else { msg.topic = ids[0]; }
|
||||
// if (RED.settings.verbose || LOGITALL) { node.log("Received a message from "+stanza.attrs.from); }
|
||||
if (!node.join && ((node.from[0] === "") || (node.from.includes(stanza.attrs.to)))) {
|
||||
if (!node.join && ((node.from[0] === "") || (node.from.includes(stanza.attrs.from.split('/')[0])) || (node.from.includes(stanza.attrs.from.split('/')[1])) )) {
|
||||
node.send([msg,null]);
|
||||
}
|
||||
}
|
||||
@ -514,7 +514,7 @@ module.exports = function(RED) {
|
||||
payload: {
|
||||
presence:state,
|
||||
status:statusText,
|
||||
name:node.serverConfig.MUCs[stanza.attrs.from.split('/')[0]]
|
||||
name:stanza.attrs.from.split('/')[1]
|
||||
}
|
||||
};
|
||||
node.send([null,msg]);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-xmpp",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"description": "A Node-RED node to talk to an XMPP server",
|
||||
"dependencies": {
|
||||
"@xmpp/client": "^0.12.0"
|
||||
|
Loading…
Reference in New Issue
Block a user