|
|
@ -80,6 +80,7 @@
|
|
|
|
this.listenTo(this.model, 'change:color', this.updateColor);
|
|
|
|
this.listenTo(this.model, 'change:color', this.updateColor);
|
|
|
|
this.listenTo(this.model, 'change:name', this.updateTitle);
|
|
|
|
this.listenTo(this.model, 'change:name', this.updateTitle);
|
|
|
|
this.listenTo(this.model, 'newmessage', this.addMessage);
|
|
|
|
this.listenTo(this.model, 'newmessage', this.addMessage);
|
|
|
|
|
|
|
|
this.listenTo(this.model, 'delivered', this.updateMessage);
|
|
|
|
this.listenTo(this.model, 'opened', this.onOpened);
|
|
|
|
this.listenTo(this.model, 'opened', this.onOpened);
|
|
|
|
this.listenTo(this.model, 'expired', this.onExpired);
|
|
|
|
this.listenTo(this.model, 'expired', this.onExpired);
|
|
|
|
this.listenTo(this.model.messageCollection, 'expired', this.onExpiredCollection);
|
|
|
|
this.listenTo(this.model.messageCollection, 'expired', this.onExpiredCollection);
|
|
|
@ -237,6 +238,9 @@
|
|
|
|
this.markRead();
|
|
|
|
this.markRead();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
updateMessage: function(message) {
|
|
|
|
|
|
|
|
this.model.messageCollection.add(message, {merge: true});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
viewMembers: function() {
|
|
|
|
viewMembers: function() {
|
|
|
|
return this.model.fetchContacts().then(function() {
|
|
|
|
return this.model.fetchContacts().then(function() {
|
|
|
|