From 45cda8494a998bf434365b9212759b0c219f2e61 Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 17 Oct 2018 12:08:15 +0100 Subject: [PATCH] possible fix for issue #1185 --- dist/converse.js | 2 +- src/converse-roster.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/converse.js b/dist/converse.js index 2b55c81ba..323dbc42e 100644 --- a/dist/converse.js +++ b/dist/converse.js @@ -75974,7 +75974,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ const id = iq.getAttribute('id'); 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 // // A receiving client MUST ignore the stanza unless it has no 'from' diff --git a/src/converse-roster.js b/src/converse-roster.js index b97e7db16..881827381 100644 --- a/src/converse-roster.js +++ b/src/converse-roster.js @@ -539,7 +539,7 @@ */ const id = iq.getAttribute('id'); 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 // // A receiving client MUST ignore the stanza unless it has no 'from'