Make selector more general because Ejabberd returns `error[type="modify"]` instead of `error[type="cancel"]`.
This commit is contained in:
JC Brand 2019-07-01 17:59:02 +02:00
parent 34a404eecc
commit 0d75cc5235

View File

@ -1312,7 +1312,7 @@ converse.plugins.add('converse-muc', {
try {
result = await _converse.api.sendIQ(ping);
} catch (e) {
const sel = `error[type="cancel"] not-acceptable[xmlns="${Strophe.NS.STANZAS}"]`;
const sel = `error not-acceptable[xmlns="${Strophe.NS.STANZAS}"]`;
if (_.isElement(e) && sizzle(sel, e).length) {
return false;
}