Refactor for less model duplication
This commit is contained in:
parent
c4eac76032
commit
baa55c9018
9 changed files with 71 additions and 50 deletions
|
@ -163,6 +163,7 @@
|
|||
},
|
||||
|
||||
fetchMessages: function() {
|
||||
if(!this.id) { return false; }
|
||||
return this.messageCollection.fetchConversation(this.id);
|
||||
},
|
||||
|
||||
|
@ -181,6 +182,11 @@
|
|||
}
|
||||
},
|
||||
|
||||
reload: function() {
|
||||
this.fetch().then(this.fetchContacts.bind(this));
|
||||
this.fetchMessages();
|
||||
},
|
||||
|
||||
archive: function() {
|
||||
this.set({active_at: null});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue