mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
FIX: .backup file selection
This commit is contained in:
parent
0f551a2538
commit
d3746b6902
2 changed files with 4 additions and 4 deletions
|
@ -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 };
|
||||
|
|
|
@ -336,7 +336,7 @@
|
|||
<dict>
|
||||
<key>public.filename-extension</key>
|
||||
<array>
|
||||
<string>io.bluewallet.backup</string>
|
||||
<string>backup</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
Loading…
Add table
Reference in a new issue