Move handlePushMessageContent to message model
And retool message handling flow to helps us avoid instantiating duplicate message and conversation models.
This commit is contained in:
parent
897d391817
commit
9930937707
5 changed files with 98 additions and 112 deletions
|
@ -21,7 +21,7 @@
|
|||
tagName: 'div',
|
||||
template: $('#message').html(),
|
||||
initialize: function() {
|
||||
this.listenTo(this.model, 'change:body', this.render);
|
||||
this.listenTo(this.model, 'change:body change:errors', this.render);
|
||||
this.listenTo(this.model, 'change:delivered', this.renderDelivered);
|
||||
},
|
||||
className: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue