Fix: MUCs sorting

This commit is contained in:
Sebastien Hut 2014-11-21 17:11:05 +01:00
parent 93cae83503
commit e38fdf8b9e
2 changed files with 1 additions and 2 deletions

View File

@ -40,7 +40,7 @@ module.exports = HumanModel.define({
fn: function () {
var disp = this.name;
if (!disp) disp = this.jid.jid;
return disp.split('@')[0];
return disp.split('@')[0];
}
},
displayUnreadCount: {

View File

@ -10,7 +10,6 @@ module.exports = BaseCollection.extend({
type: 'mucs',
model: MUC,
comparator: function (model1, model2) {
return 0;
var name1 = model1.displayName.toLowerCase();
var name2 = model2.displayName.toLowerCase();
if (name1 === name2) {