chore: Make cross signing self sign mandatory for bootstrap
This commit is contained in:
parent
495de8fc17
commit
81eb4a01a1
1 changed files with 6 additions and 14 deletions
|
|
@ -365,20 +365,12 @@ class BootstrapDialogState extends State<BootstrapDialog> {
|
|||
Logs().v(
|
||||
'Cross signing is already enabled. Try to self-sign',
|
||||
);
|
||||
try {
|
||||
await bootstrap
|
||||
.client
|
||||
.encryption!
|
||||
.crossSigning
|
||||
.selfSign(recoveryKey: key);
|
||||
Logs().d('Successful selfsigned');
|
||||
} catch (e, s) {
|
||||
Logs().e(
|
||||
'Unable to self sign with recovery key after successfully open existing SSSS',
|
||||
e,
|
||||
s,
|
||||
);
|
||||
}
|
||||
await bootstrap
|
||||
.client
|
||||
.encryption!
|
||||
.crossSigning
|
||||
.selfSign(recoveryKey: key);
|
||||
Logs().d('Successful selfsigned');
|
||||
}
|
||||
} on InvalidPassphraseException catch (e) {
|
||||
setState(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue