Make chat window titles match contact list

This commit is contained in:
lilia 2015-01-24 10:36:04 -10:00
parent 1a553fef17
commit bd86546cea
3 changed files with 7 additions and 2 deletions

View file

@ -118,6 +118,10 @@
_.each(models, function(message) { message.destroy(); });
this.archive();
return this.save();
},
getTitle: function() {
return this.get('name') || this.get('members') || this.id;
}
});