Cleanup some code

This commit is contained in:
djmaze 2020-09-19 13:53:14 +02:00
parent 3ea2f5f452
commit 9fc5a3ff6a
6 changed files with 31 additions and 25 deletions

View file

@ -1390,17 +1390,7 @@ class ComposePopupView extends AbstractViewNext {
}
if (add) {
const attachment = new ComposeAttachmentModel(
item.download,
item.fileName,
item.estimatedSize,
item.isInline,
item.isLinked,
item.cid,
item.contentLocation
);
attachment.fromMessage = true;
const attachment = ComposeAttachmentModel.fromAttachment(item);
attachment.cancel = this.cancelAttachmentHelper(item.download);
attachment
.waiting(false)