MessageView.updateColor: Call getAvatar on convo, not message

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-09-07 10:38:00 -07:00
parent 71036e31ab
commit e3bada1f4a
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -376,7 +376,7 @@
}
this.avatarView = new (Whisper.View.extend({
templateName: 'avatar',
render_attributes: { avatar: this.model.getAvatar() }
render_attributes: { avatar: this.contact.getAvatar() }
}))();
this.$('.avatar').replaceWith(this.avatarView.render().$('.avatar'));
},