Skip to content

Commit d2b4f2e

Browse files
committed
MUC search: no need to first fetch the form
1 parent 320f11f commit d2b4f2e

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/plugins/muc-views/search.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,7 @@ Strophe.addNamespace('MUCSEARCH', 'https://xmlns.zombofant.net/muclumbus/search/
88
const rooms_cache = {};
99

1010
async function searchRooms (query) {
11-
let iq = $iq({
12-
'type': 'get',
13-
'from': _converse.bare_jid,
14-
15-
}).c('search', { 'xmlns': Strophe.NS.MUCSEARCH })
16-
17-
try {
18-
await api.sendIQ(iq);
19-
} catch (e) {
20-
log.error(e);
21-
return [];
22-
}
23-
24-
iq = $iq({
11+
const iq = $iq({
2512
'type': 'get',
2613
'from': _converse.bare_jid,
2714

0 commit comments

Comments
 (0)