Simplify avatar rendering

This commit is contained in:
lilia 2015-03-17 17:10:18 -07:00
parent fa3699cdd3
commit cecb438a52
6 changed files with 20 additions and 41 deletions

View file

@ -62,8 +62,8 @@
tofrom: this.model.isIncoming() ? 'From' : 'To',
contacts: this.contacts().map(function(contact) {
return {
name : contact.getTitle(),
avatar : contact.get('avatar'),
name : contact.getTitle(),
avatar_url : contact.getAvatarUrl()
};
}.bind(this))
}));