Remove inactive models from inbox collection
Fixes auto archive when deleting all messages, and auto unarchive when sending a new message. Previously, the convo would not reappear in the inbox after deleting all messages. // FREEBIE
This commit is contained in:
parent
80764bf494
commit
f8745e1e5b
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
|||
addActive: function(model) {
|
||||
if (model.get('active_at')) {
|
||||
this.add(model);
|
||||
} else {
|
||||
this.remove(model);
|
||||
}
|
||||
},
|
||||
updateUnreadCount: function(model, count) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue