fix: Endless bootstrap loading

This commit is contained in:
Christian Pauly 2021-02-06 11:23:08 +01:00
parent 4c10ef5213
commit 65d5f9a27d
3 changed files with 2 additions and 3 deletions

View File

@ -135,7 +135,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
future: () =>
bootstrap.newSsssKey.unlock(keyOrPassphrase: input.single),
);
if (valid.error == null) bootstrap.openExistingSsss();
if (valid.error == null) await bootstrap.openExistingSsss();
}));
break;
case BootstrapState.askWipeCrossSigning:

View File

@ -132,7 +132,6 @@ class MatrixState extends State<Matrix> {
StreamSubscription<html.Event> onBlurSub;
void _onUiaRequest(UiaRequest uiaRequest) async {
uiaRequest.onUpdate = (_) => _onUiaRequest(uiaRequest);
if (uiaRequest.state != UiaRequestState.waitForUser ||
uiaRequest.nextStages.isEmpty) return;
final stage = uiaRequest.nextStages.first;

View File

@ -223,7 +223,7 @@ packages:
description:
path: "."
ref: main
resolved-ref: a6ee8053670ef4701e412bef0836480c4ad45905
resolved-ref: "9faf07e31ae825147c2b295517f04233e9342e25"
url: "https://gitlab.com/famedly/famedlysdk.git"
source: git
version: "0.0.1"