chore: Update SDK

This commit is contained in:
Christian Pauly 2020-12-10 11:25:49 +01:00
commit c0042c9d52
3 changed files with 27 additions and 48 deletions

View file

@ -218,13 +218,13 @@ class _SettingsState extends State<Settings> {
await Future.delayed(Duration(milliseconds: 100));
var valid = false;
try {
handle.unlock(recoveryKey: input.single);
await handle.unlock(recoveryKey: input.single);
valid = true;
} catch (e, s) {
debugPrint('Couldn\'t use recovery key: ' + e.toString());
debugPrint(s.toString());
try {
handle.unlock(passphrase: input.single);
await handle.unlock(passphrase: input.single);
valid = true;
} catch (e, s) {
debugPrint('Couldn\'t use recovery passphrase: ' + e.toString());