|
|
@ -208,9 +208,13 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|
|
|
_recoveryKeyInputLoading = true;
|
|
|
|
_recoveryKeyInputLoading = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
final key = _recoveryKeyTextEditingController.text;
|
|
|
|
await bootstrap.newSsssKey.unlock(
|
|
|
|
await bootstrap.newSsssKey.unlock(
|
|
|
|
keyOrPassphrase:
|
|
|
|
keyOrPassphrase: key,
|
|
|
|
_recoveryKeyTextEditingController.text,
|
|
|
|
);
|
|
|
|
|
|
|
|
await bootstrap.client.encryption.crossSigning
|
|
|
|
|
|
|
|
.selfSign(
|
|
|
|
|
|
|
|
keyOrPassphrase: key,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
await bootstrap.openExistingSsss();
|
|
|
|
await bootstrap.openExistingSsss();
|
|
|
|
} catch (e, s) {
|
|
|
|
} catch (e, s) {
|
|
|
|