Fix parameters signature for `onDiscoInfoRequest`

This commit is contained in:
JC Brand 2021-04-23 11:49:12 +02:00
parent 8e0701f7bb
commit ff14a706cf
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { Collection } from "@converse/skeletor/src/collection";
const { Strophe, $iq } = converse.env;
function onDiscoInfoRequest (identities, features, stanza) {
function onDiscoInfoRequest (stanza) {
const node = stanza.getElementsByTagName('query')[0].getAttribute('node');
const attrs = {xmlns: Strophe.NS.DISCO_INFO};
if (node) { attrs.node = node; }