Commit 0d75cc52 authored by JC Brand's avatar JC Brand

Fixes #1622

Make selector more general because Ejabberd returns `error[type="modify"]` instead of `error[type="cancel"]`.
parent 34a404ee
......@@ -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;
}
......
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