fix: Self sign while bootstrap
This commit is contained in:
parent
4c561e8b0f
commit
45d7113a54
1 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue