Clear the lastMessage when deleting a conversation
Leave no trace. Fixes #397. // FREEBIE
This commit is contained in:
parent
717108d17f
commit
b59b702eb3
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@
|
||||||
var models = this.messageCollection.models;
|
var models = this.messageCollection.models;
|
||||||
this.messageCollection.reset([]);
|
this.messageCollection.reset([]);
|
||||||
_.each(models, function(message) { message.destroy(); });
|
_.each(models, function(message) { message.destroy(); });
|
||||||
this.save({active_at: null}); // archive
|
this.save({active_at: null, lastMessage: ''}); // archive
|
||||||
},
|
},
|
||||||
|
|
||||||
getTitle: function() {
|
getTitle: function() {
|
||||||
|
|
Loading…
Reference in a new issue