|
|
|
@ -99,17 +99,24 @@
|
|
|
|
|
this.listenTo(this.model, 'change', update);
|
|
|
|
|
this.listenTo(this.model, 'expired', update);
|
|
|
|
|
|
|
|
|
|
const applicableConversationChanges =
|
|
|
|
|
'change:color change:name change:number change:profileName change:profileAvatar';
|
|
|
|
|
|
|
|
|
|
this.conversation = this.model.getConversation();
|
|
|
|
|
this.listenTo(this.conversation, 'change', update);
|
|
|
|
|
this.listenTo(this.conversation, applicableConversationChanges, update);
|
|
|
|
|
|
|
|
|
|
this.fromContact = this.model.getIncomingContact();
|
|
|
|
|
if (this.fromContact) {
|
|
|
|
|
this.listenTo(this.fromContact, 'change', update);
|
|
|
|
|
this.listenTo(this.fromContact, applicableConversationChanges, update);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.quotedContact = this.model.getQuoteContact();
|
|
|
|
|
if (this.quotedContact) {
|
|
|
|
|
this.listenTo(this.quotedContact, 'change', update);
|
|
|
|
|
this.listenTo(
|
|
|
|
|
this.quotedContact,
|
|
|
|
|
applicableConversationChanges,
|
|
|
|
|
update
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$el.append(this.childView.el);
|
|
|
|
|