Delete conversation external files on deletion

This commit is contained in:
Scott Nonnenberg 2018-10-01 15:54:14 -07:00
parent 2cfbfe477a
commit f38410976d
2 changed files with 33 additions and 0 deletions

View file

@ -123,6 +123,15 @@
return this.id === this.ourNumber;
},
async cleanup() {
await window.Signal.Types.Conversation.deleteExternalFiles(
this.attributes,
{
deleteAttachmentData,
}
);
},
async updateAndMerge(message) {
this.updateLastMessage();