Merge branch 'soru/cache-ssss-keys-in-bootstrap-dialog' into 'main'
fix: Cache ssss keys if using an existing ssss in bootstrapping Closes fluffychat#274 See merge request famedly/famedlysdk!636
This commit is contained in:
commit
9274c85bef
|
|
@ -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