Fix parameters signature for `onDiscoInfoRequest`
This commit is contained in:
parent
8e0701f7bb
commit
ff14a706cf
|
@ -4,7 +4,7 @@ import { Collection } from "@converse/skeletor/src/collection";
|
||||||
const { Strophe, $iq } = converse.env;
|
const { Strophe, $iq } = converse.env;
|
||||||
|
|
||||||
|
|
||||||
function onDiscoInfoRequest (identities, features, stanza) {
|
function onDiscoInfoRequest (stanza) {
|
||||||
const node = stanza.getElementsByTagName('query')[0].getAttribute('node');
|
const node = stanza.getElementsByTagName('query')[0].getAttribute('node');
|
||||||
const attrs = {xmlns: Strophe.NS.DISCO_INFO};
|
const attrs = {xmlns: Strophe.NS.DISCO_INFO};
|
||||||
if (node) { attrs.node = node; }
|
if (node) { attrs.node = node; }
|
||||||
|
|
Reference in New Issue