From d20a5c30ac3a772f0ae29d3aefc8db2fbd47a715 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Thu, 18 Nov 2021 21:21:12 +0100 Subject: [PATCH] fix: Self sign while bootstrap --- lib/pages/bootstrap/bootstrap_dialog.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pages/bootstrap/bootstrap_dialog.dart b/lib/pages/bootstrap/bootstrap_dialog.dart index fcc72817..576b3cbc 100644 --- a/lib/pages/bootstrap/bootstrap_dialog.dart +++ b/lib/pages/bootstrap/bootstrap_dialog.dart @@ -208,9 +208,13 @@ class _BootstrapDialogState extends State { _recoveryKeyInputLoading = true; }); try { + final key = _recoveryKeyTextEditingController.text; await bootstrap.newSsssKey.unlock( - keyOrPassphrase: - _recoveryKeyTextEditingController.text, + keyOrPassphrase: key, + ); + await bootstrap.client.encryption.crossSigning + .selfSign( + keyOrPassphrase: key, ); await bootstrap.openExistingSsss(); } catch (e, s) {