diff --git a/clientapp/models/muc.js b/clientapp/models/muc.js index 17eae92..3eb0b76 100644 --- a/clientapp/models/muc.js +++ b/clientapp/models/muc.js @@ -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: { diff --git a/clientapp/models/mucs.js b/clientapp/models/mucs.js index 48e038d..e72d3ed 100644 --- a/clientapp/models/mucs.js +++ b/clientapp/models/mucs.js @@ -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) {