MM-30850 fix(android): Failure to share self-uploaded file (#5010) (#5018)

(cherry picked from commit b27076b06f)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2020-12-10 13:12:30 +01:00 committed by GitHub
parent 84918a666d
commit 976d2b5fe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,8 +75,7 @@ const PrepareFile = forwardRef<PrepareFileRef, PrepareFileProps>(({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 {