From 74a64fa092e41fb1cecd314b05544ce1f179bd58 Mon Sep 17 00:00:00 2001 From: saad-abid-crowdbotics <76822297+saad-abid-crowdbotics@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:29:30 +0500 Subject: [PATCH] Update destination path for files (#994) --- modules/react-native-chat/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/react-native-chat/utils.js b/modules/react-native-chat/utils.js index d7e7d78ea..785363846 100644 --- a/modules/react-native-chat/utils.js +++ b/modules/react-native-chat/utils.js @@ -76,7 +76,7 @@ export function getByValue(arr, value) { } export const getUrl = async (uri, fileName) => { - const destPath = `${RNFS.TemporaryDirectoryPath}/${fileName}`; + const destPath = `${RNFS.DocumentDirectoryPath}/${fileName}`; await RNFS.copyFile(uri, destPath); await RNFS.stat(destPath); return destPath;