From 07e097000afaeae219ca3739f664c736e4878b8b Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Mon, 15 May 2023 14:20:31 -0300 Subject: [PATCH] desestructured params to download too --- app/containers/message/Audio.tsx | 5 ++++- app/lib/methods/handleMediaDownload.ts | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/containers/message/Audio.tsx b/app/containers/message/Audio.tsx index a6355649a..4eab262ed 100644 --- a/app/containers/message/Audio.tsx +++ b/app/containers/message/Audio.tsx @@ -293,7 +293,10 @@ class MessageAudio extends React.Component { +export const downloadMediaFile = async ({ + url, + filePath, + downloadResumable +}: { + url: string; + filePath: string; + downloadResumable?: FileSystem.DownloadResumable; +}) => { let uri = ''; try { if (downloadResumable) {