Add avatars to conversation headers

So as not to look repetitive, hide the per-message avatars in one-on-one
conversations.

// FREEBIE
This commit is contained in:
lilia 2015-11-09 11:29:51 -08:00
parent 86d5ac7ef9
commit f860278b89
5 changed files with 21 additions and 4 deletions

View file

@ -17,7 +17,8 @@
render_attributes: function() {
return {
group: this.model.get('type') === 'group',
title: this.model.getTitle()
title: this.model.getTitle(),
avatar: this.model.getAvatar()
};
},
initialize: function(options) {
@ -246,7 +247,7 @@
$discussionContainer.outerHeight(
this.$el.outerHeight() -
$bottomBarNewHeight -
$conversationHeader.outerHeight() - 20);
$conversationHeader.outerHeight() - 40);
this.view.scrollToBottomIfNeeded();
},