mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: .backup file selection
This commit is contained in:
parent
0f551a2538
commit
d3746b6902
@ -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…
Reference in New Issue
Block a user