From 10223096afc1c136519a5a8dbe1ed1bc769072ab Mon Sep 17 00:00:00 2001 From: SproulDog <30403636+SproulDog@users.noreply.github.com> Date: Tue, 1 Aug 2017 20:53:23 +1000 Subject: [PATCH] Update strophe.disco.js sendIQ returns the request id (which is subsequently used to pair the response handler). So it makes sense that info request returns id like others. --- disco/strophe.disco.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/strophe.disco.js b/disco/strophe.disco.js index eb3f913..571cee8 100644 --- a/disco/strophe.disco.js +++ b/disco/strophe.disco.js @@ -127,7 +127,7 @@ Strophe.addConnectionPlugin('disco', var info = $iq({from:this._connection.jid, to:jid, type:'get'}).c('query', attrs); - this._connection.sendIQ(info, success, error, timeout); + return this._connection.sendIQ(info, success, error, timeout); }, /** Function: items * Items query