From 0462863ce6494bc988620724f4e5560d52a2dcab Mon Sep 17 00:00:00 2001 From: Sorunome Date: Wed, 3 Feb 2021 13:54:15 +0100 Subject: [PATCH] fix: Cache ssss keys if using an existing ssss in bootstrapping --- lib/encryption/utils/bootstrap.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/encryption/utils/bootstrap.dart b/lib/encryption/utils/bootstrap.dart index 5e70f6da..7b778c7b 100644 --- a/lib/encryption/utils/bootstrap.dart +++ b/lib/encryption/utils/bootstrap.dart @@ -308,13 +308,14 @@ class Bootstrap { checkCrossSigning(); } - void openExistingSsss() { + Future openExistingSsss() async { if (state != BootstrapState.openExistingSsss) { throw BootstrapBadStateException(); } if (!newSsssKey.isUnlocked) { throw BootstrapBadStateException('Key not unlocked'); } + await newSsssKey.maybeCacheAll(); checkCrossSigning(); }