chore: fix downloads

This commit is contained in:
Aman Harwara
2023-04-25 14:46:24 +05:30
parent 70fd47a697
commit d08581c8a6
2 changed files with 25 additions and 3 deletions

View File

@@ -498,6 +498,15 @@ export class FilesController extends AbstractViewController<FilesControllerEvent
}
downloadFiles = async (files: FileItem[]) => {
await Promise.all(files.map((file) => this.downloadFile(file)))
await Promise.all(
files.map((file) =>
this.handleFileAction({
type: FileItemActionType.DownloadFile,
payload: {
file,
},
}),
),
)
}
}