Use PharData to create Zip when ZipArchive is not available

This commit is contained in:
djmaze 2021-02-10 15:47:22 +01:00
parent e3376c244e
commit 15631427b0
3 changed files with 35 additions and 19 deletions

View file

@ -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);
}