Commit 4cd06b64 authored by JC Brand's avatar JC Brand

Bugfix. [] evaluates to truthy

parent 9b61b2bd
......@@ -138,7 +138,8 @@
'name': room[0].toUpperCase() + room.slice(1),
'type': 'text'
}).up();
features = features || [
features = features.length ? features : [
'http://jabber.org/protocol/muc',
'jabber:iq:register',
'muc_passwordprotected',
......@@ -155,8 +156,8 @@
.c('value').t('This is the description').up().up()
.c('field', {'type':'text-single', 'var':'muc#roominfo_occupants', 'label':'Number of occupants'})
.c('value').t(0);
_converse.connection._dataRecv(utils.createRequest(features_stanza));
const iq = await utils.waitUntil(() => _.filter(
stanzas,
s => sizzle(`iq[to="${room_jid}"] query[node="x-roomuser-item"]`, s.nodeTree).length
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment