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:
@@ -23,6 +23,8 @@
|
|||||||
addActive: function(model) {
|
addActive: function(model) {
|
||||||
if (model.get('active_at')) {
|
if (model.get('active_at')) {
|
||||||
this.add(model);
|
this.add(model);
|
||||||
|
} else {
|
||||||
|
this.remove(model);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateUnreadCount: function(model, count) {
|
updateUnreadCount: function(model, count) {
|
||||||
|
Reference in New Issue
Block a user