Fix opening documents on Android (#2425)

This commit is contained in:
Elias Nahum 2018-12-06 14:23:05 -03:00
parent 97b6eaecb1
commit 1c9cf210c8
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -236,7 +236,7 @@ export default class FileAttachmentDocument extends PureComponent {
OpenFile.openDoc([{
url: `${prefix}${path}`,
fileNameOptional: file.caption,
fileName: data.name,
fileName: encodeURI(data.name.split('.').slice(0, -1).join('.')),
fileType: data.extension,
cache: false,
}], (error) => {