Fall back to chatbox JID if the stanza has no from
This commit is contained in:
parent
f123f483ae
commit
a8e05dae36
2
dist/converse.js
vendored
2
dist/converse.js
vendored
|
@ -61662,7 +61662,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const by_jid = stanza.getAttribute('from');
|
const by_jid = stanza.getAttribute('from') || this.get('jid');
|
||||||
const supported = await _converse.api.disco.supports(Strophe.NS.MAM, by_jid);
|
const supported = await _converse.api.disco.supports(Strophe.NS.MAM, by_jid);
|
||||||
|
|
||||||
if (!supported.length) {
|
if (!supported.length) {
|
||||||
|
|
|
@ -330,7 +330,7 @@ converse.plugins.add('converse-chatboxes', {
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const by_jid = stanza.getAttribute('from');
|
const by_jid = stanza.getAttribute('from') || this.get('jid');
|
||||||
const supported = await _converse.api.disco.supports(Strophe.NS.MAM, by_jid);
|
const supported = await _converse.api.disco.supports(Strophe.NS.MAM, by_jid);
|
||||||
if (!supported.length) {
|
if (!supported.length) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user