mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
parent
df75872826
commit
305327faaa
@ -444,7 +444,7 @@ module.exports = function(RED) {
|
||||
subj = subj.getText();
|
||||
if (subj.trim() !== "") { node.subject[stanza.attrs.from.split('/')[0]] = subj; }
|
||||
}
|
||||
if (stanza.attrs.type == 'chat') {
|
||||
if (!stanza.attrs.hasOwnProperty("type") || stanza.attrs.type == 'chat') {
|
||||
var body = stanza.getChild('body');
|
||||
if (body) {
|
||||
var msg = { payload:body.getText(), subject:node.subject[stanza.attrs.from.split('/')[0]] };
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-xmpp",
|
||||
"version": "0.6.2",
|
||||
"version": "0.6.3",
|
||||
"description": "A Node-RED node to talk to an XMPP server",
|
||||
"dependencies": {
|
||||
"@xmpp/client": "^0.13.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user