Check xmlns

This commit is contained in:
JC Brand 2018-11-17 18:58:23 +01:00
parent 8524ff3b99
commit 67958bba40

View File

@ -953,7 +953,8 @@ converse.plugins.add('converse-muc', {
this.fetchFeaturesIfConfigurationChanged(stanza);
const original_stanza = stanza,
forwarded = stanza.querySelector('forwarded');
forwarded = sizzle(`forwarded[xmlns="${Strophe.NS.FORWARD}"]`, stanza).pop();
if (!_.isNull(forwarded)) {
stanza = forwarded.querySelector('message');
}