Clear the lastMessage when deleting a conversation

Leave no trace. Fixes #397.

// FREEBIE
pull/749/head
lilia 10 years ago
parent 717108d17f
commit b59b702eb3

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

Loading…
Cancel
Save