Fall back to chatbox JID if the stanza has no from

This commit is contained in:
JC Brand 2019-02-21 09:21:18 +01:00
parent f123f483ae
commit a8e05dae36
2 changed files with 2 additions and 2 deletions

2
dist/converse.js vendored
View File

@ -61662,7 +61662,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
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);
if (!supported.length) {

View File

@ -330,7 +330,7 @@ converse.plugins.add('converse-chatboxes', {
if (!result) {
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);
if (!supported.length) {
return false;