Fixes #1622
Make selector more general because Ejabberd returns `error[type="modify"]` instead of `error[type="cancel"]`.
This commit is contained in:
parent
34a404eecc
commit
0d75cc5235
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user