Browse Source

Check xmlns

JC Brand 6 năm trước cách đây
mục cha
commit
67958bba40
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/headless/converse-muc.js

+ 2 - 1
src/headless/converse-muc.js

@@ -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');
                 }