Converse ryzen 894 (#895)

* added change #894

* #894 - fix jid comparison in setAffiliationAndRole
This commit is contained in:
Antonio Zoccoli 2017-06-14 22:20:46 +02:00 committed by JC Brand
parent 6c262f7213
commit ad06c2b9cc
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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) {