From 976d2b5fe35f19f656436ee612f748e9d80327ea Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Thu, 10 Dec 2020 13:12:30 +0100 Subject: [PATCH] MM-30850 fix(android): Failure to share self-uploaded file (#5010) (#5018) (cherry picked from commit b27076b06f58c804c1eb2298ee2c259ba588fb43) Co-authored-by: Elias Nahum --- app/screens/gallery/footer/prepare_file/prepare_file.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/screens/gallery/footer/prepare_file/prepare_file.tsx b/app/screens/gallery/footer/prepare_file/prepare_file.tsx index 2f67d3ff8..d741555f2 100644 --- a/app/screens/gallery/footer/prepare_file/prepare_file.tsx +++ b/app/screens/gallery/footer/prepare_file/prepare_file.tsx @@ -75,8 +75,7 @@ const PrepareFile = forwardRef(({intl, isLands let path; try { - const prefix = Platform.OS === 'android' ? 'file:/' : ''; - const exist = await RNFetchBlob.fs.exists(`${prefix}${localPath}`); + const exist = await RNFetchBlob.fs.exists(localPath); if (exist) { path = localPath; } else {