fix: Cache ssss keys if using an existing ssss in bootstrapping

This commit is contained in:
Sorunome 2021-02-03 13:54:15 +01:00
parent bb9f0dd98a
commit 0462863ce6
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}