Commit a8e05dae authored by JC Brand's avatar JC Brand

Fall back to chatbox JID if the stanza has no `from`

parent f123f483
......@@ -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) {
......@@ -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;
......
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