From d2b4f2e0f687d8c6a1a63ec9981f7374ecb1a54f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 12 Jun 2022 09:59:50 +0200 Subject: [PATCH] MUC search: no need to first fetch the form --- src/plugins/muc-views/search.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/plugins/muc-views/search.js b/src/plugins/muc-views/search.js index fda65537f..b020e11ab 100644 --- a/src/plugins/muc-views/search.js +++ b/src/plugins/muc-views/search.js @@ -8,20 +8,7 @@ Strophe.addNamespace('MUCSEARCH', 'https://xmlns.zombofant.net/muclumbus/search/ const rooms_cache = {}; async function searchRooms (query) { - let iq = $iq({ - 'type': 'get', - 'from': _converse.bare_jid, - 'to': 'api@search.jabber.network' - }).c('search', { 'xmlns': Strophe.NS.MUCSEARCH }) - - try { - await api.sendIQ(iq); - } catch (e) { - log.error(e); - return []; - } - - iq = $iq({ + const iq = $iq({ 'type': 'get', 'from': _converse.bare_jid, 'to': 'api@search.jabber.network'