Clear the lastMessage when deleting a conversation

Leave no trace. Fixes #397.

// FREEBIE
This commit is contained in:
lilia 2015-11-08 11:14:21 -08:00
parent 717108d17f
commit b59b702eb3

View file

@ -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() {