FIX: .backup file selection

This commit is contained in:
marcosrdz 2020-10-13 11:30:29 -04:00 committed by Overtorment
parent 0f551a2538
commit d3746b6902
2 changed files with 4 additions and 4 deletions

View File

@ -91,12 +91,12 @@ const showFilePickerAndReadFile = async function () {
let file = false;
if (res.uri.toLowerCase().endsWith('.psbt')) {
// this is either binary file from ElectrumDesktop OR string file with base64 string in there
file = await _readPsbtFileIntoBase64(res.uri);
file = await _readPsbtFileIntoBase64(res.fileCopyUri);
} else {
file = await RNFS.readFile(res.uri);
file = await RNFS.readFile(res.fileCopyUri);
}
return { data: file, uri: res.uri };
return { data: file, uri: res.fileCopyUri };
} catch (err) {
if (!DocumentPicker.isCancel(err)) {
return { data: false, uri: false };

View File

@ -336,7 +336,7 @@
<dict>
<key>public.filename-extension</key>
<array>
<string>io.bluewallet.backup</string>
<string>backup</string>
</array>
</dict>
</dict>