Bring back persist argument to openDb
This reverts commit fc1028dba411711c46e3976693552632af4b9dc6.
This commit is contained in:
@@ -18,7 +18,7 @@ export default class PasswordPrompt extends Component {
|
||||
if (hasEncryption) {
|
||||
this.setState({showPasswordPrompt: true})
|
||||
} else {
|
||||
await openDb()
|
||||
await openDb({persistConnection: true})
|
||||
this.props.showApp()
|
||||
}
|
||||
})
|
||||
@@ -34,7 +34,7 @@ export default class PasswordPrompt extends Component {
|
||||
msg = JSON.parse(msg)
|
||||
if (msg.type != 'sha512') return
|
||||
try {
|
||||
await openDb(msg.message)
|
||||
await openDb({hash: msg.message, persistConnection: true })
|
||||
} catch (err) {
|
||||
Alert.alert(
|
||||
shared.incorrectPassword,
|
||||
|
||||
Reference in New Issue
Block a user