mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Cleanup some code
This commit is contained in:
parent
ddb6daace6
commit
3ad9bb6258
3 changed files with 7 additions and 9 deletions
|
|
@ -607,16 +607,14 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
|
|||
.filter(v => v);
|
||||
if (hashes.length) {
|
||||
Remote.attachmentsActions('Zip', hashes, this.downloadAsZipLoading)
|
||||
.then((result) => {
|
||||
.then(result => {
|
||||
if (result && result.Result && result.Result.FileHash) {
|
||||
rl.app.download(attachmentDownload(result.Result.FileHash));
|
||||
} else {
|
||||
this.downloadAsZipError(true);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.downloadAsZipError(true);
|
||||
});
|
||||
.catch(() => this.downloadAsZipError(true));
|
||||
} else {
|
||||
this.highlightUnselectedAttachments(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue