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:
lilia 2015-03-18 16:26:55 -07:00
parent 897d391817
commit 9930937707
5 changed files with 98 additions and 112 deletions

View file

@ -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() {