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
|
@ -46,6 +46,8 @@
|
|||
initialize: function(options) {
|
||||
this.view = new Whisper.MessageView({model: this.model});
|
||||
this.conversation = options.conversation;
|
||||
|
||||
this.listenTo(this.model, 'change', this.render);
|
||||
},
|
||||
events: {
|
||||
'click .back': 'goBack',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue