瀏覽代碼

possible fix for issue #1185

alan 6 年之前
父節點
當前提交
45cda8494a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      dist/converse.js
  2. 1 1
      src/converse-roster.js

+ 1 - 1
dist/converse.js

@@ -75974,7 +75974,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
           const id = iq.getAttribute('id');
           const id = iq.getAttribute('id');
           const from = iq.getAttribute('from');
           const from = iq.getAttribute('from');
 
 
-          if (from && from !== _converse.connection.jid) {
+          if (from && from !== _converse.bare_jid) {
             // https://tools.ietf.org/html/rfc6121#page-15
             // https://tools.ietf.org/html/rfc6121#page-15
             // 
             // 
             // A receiving client MUST ignore the stanza unless it has no 'from'
             // A receiving client MUST ignore the stanza unless it has no 'from'

+ 1 - 1
src/converse-roster.js

@@ -539,7 +539,7 @@
                      */
                      */
                     const id = iq.getAttribute('id');
                     const id = iq.getAttribute('id');
                     const from = iq.getAttribute('from');
                     const from = iq.getAttribute('from');
-                    if (from && from !== _converse.connection.jid) {
+                    if (from && from !== _converse.bare_jid) {
                         // https://tools.ietf.org/html/rfc6121#page-15
                         // https://tools.ietf.org/html/rfc6121#page-15
                         // 
                         // 
                         // A receiving client MUST ignore the stanza unless it has no 'from'
                         // A receiving client MUST ignore the stanza unless it has no 'from'