From f8745e1e5bbd409179296158fe84dd365b0c8c05 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 14 Sep 2015 17:36:58 -0700 Subject: [PATCH] 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 --- js/panel_controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/panel_controller.js b/js/panel_controller.js index 2f299e017..685fa6d44 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -23,6 +23,8 @@ addActive: function(model) { if (model.get('active_at')) { this.add(model); + } else { + this.remove(model); } }, updateUnreadCount: function(model, count) {