From b59b702eb30e1a6f9d584a7ffc58b1c698ecc2bd Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 8 Nov 2015 11:14:21 -0800 Subject: [PATCH] Clear the lastMessage when deleting a conversation Leave no trace. Fixes #397. // FREEBIE --- js/models/conversations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index ad5f233d..ce684c72 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -209,7 +209,7 @@ var models = this.messageCollection.models; this.messageCollection.reset([]); _.each(models, function(message) { message.destroy(); }); - this.save({active_at: null}); // archive + this.save({active_at: null, lastMessage: ''}); // archive }, getTitle: function() {