From a66c8794261388fd903b15c2b7908b51db08137f Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 27 May 2015 14:49:50 -0700 Subject: [PATCH] Update inbox after destroying a conversation Fixes #247 // FREEBIE --- js/models/conversations.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 46afe2c31..53addbb3d 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -187,7 +187,9 @@ this.messageCollection.reset([]); _.each(models, function(message) { message.destroy(); }); this.archive(); - return this.save(); + return this.save().then(function() { + extension.trigger('updateInbox'); + }); }, getTitle: function() {