fix: Cache ssss keys if using an existing ssss in bootstrapping
This commit is contained in:
parent
bb9f0dd98a
commit
0462863ce6
|
|
@ -308,13 +308,14 @@ class Bootstrap {
|
|||
checkCrossSigning();
|
||||
}
|
||||
|
||||
void openExistingSsss() {
|
||||
Future<void> openExistingSsss() async {
|
||||
if (state != BootstrapState.openExistingSsss) {
|
||||
throw BootstrapBadStateException();
|
||||
}
|
||||
if (!newSsssKey.isUnlocked) {
|
||||
throw BootstrapBadStateException('Key not unlocked');
|
||||
}
|
||||
await newSsssKey.maybeCacheAll();
|
||||
checkCrossSigning();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue