From ad06c2b9cc01a38f281167672b481a56fdc293af Mon Sep 17 00:00:00 2001 From: Antonio Zoccoli Date: Wed, 14 Jun 2017 22:20:46 +0200 Subject: [PATCH] Converse ryzen 894 (#895) * added change #894 * #894 - fix jid comparison in setAffiliationAndRole --- CHANGES.md | 1 + src/converse-muc.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f23349c58..a38f3c21a 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,6 +22,7 @@ - #754 Show unread messages next to roster contacts. [jcbrand] - #864 Remove all inline CSS to comply with strict Content-Security-Policy headers [mathiasertl] - #873 Inconsistent unread messages count updating [novokrest] +- #894 Room affiliation lost when connection jid and room presence jid are of different case [Rayzen] ## 3.0.2 (2017-04-23) diff --git a/src/converse-muc.js b/src/converse-muc.js index 1c653aeb3..de6c569d5 100755 --- a/src/converse-muc.js +++ b/src/converse-muc.js @@ -1717,7 +1717,7 @@ var item = sizzle('x[xmlns="'+Strophe.NS.MUC_USER+'"] item', pres).pop(); if (_.isNil(item)) { return; } var jid = item.getAttribute('jid'); - if (Strophe.getBareJidFromJid(jid) === _converse.bare_jid) { + if (Strophe.getBareJidFromJid(jid).toLowerCase() === _converse.bare_jid.toLowerCase()) { var affiliation = item.getAttribute('affiliation'); var role = item.getAttribute('role'); if (affiliation) {