mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Use PharData to create Zip when ZipArchive is not available
This commit is contained in:
parent
e3376c244e
commit
15631427b0
3 changed files with 35 additions and 19 deletions
|
|
@ -717,8 +717,8 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
|
|||
if (hashes.length) {
|
||||
Remote.attachmentsActions('Zip', hashes, this.downloadAsZipLoading)
|
||||
.then((result) => {
|
||||
if (result && result.Result && result.Result.Files && result.Result.Files[0] && result.Result.Files[0].Hash) {
|
||||
rl.app.download(attachmentDownload(result.Result.Files[0].Hash));
|
||||
if (result && result.Result && result.Result.FileHash) {
|
||||
rl.app.download(attachmentDownload(result.Result.FileHash));
|
||||
} else {
|
||||
this.downloadAsZipError(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue