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 ...@@ -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', { ...@@ -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;
......
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