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
pull/749/head
lilia 10 years ago
parent 80764bf494
commit f8745e1e5b

@ -23,6 +23,8 @@
addActive: function(model) {
if (model.get('active_at')) {
this.add(model);
} else {
this.remove(model);
}
},
updateUnreadCount: function(model, count) {

Loading…
Cancel
Save