to parameter is now an array of xmpp address
This commit is contained in:
parent
9983407c8b
commit
8d8bf43b46
@ -67,9 +67,11 @@ class TransportXmppPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_sendToXmppClient ({to, message}) {
|
_sendToXmppClient ({to, message}) {
|
||||||
const stanza = new XmppClient.Stanza('message', { to: to, type: 'chat' })
|
for (const receiver of to) {
|
||||||
.c('body').t(message)
|
const stanza = new XmppClient.Stanza('message', { to: receiver, type: 'chat' })
|
||||||
this._client.send(stanza)
|
.c('body').t(message)
|
||||||
|
this._client.send(stanza)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user