chore: Add more bootstrap logging

This commit is contained in:
Christian Pauly 2021-02-04 10:34:24 +01:00
parent 9274c85bef
commit bd4c4a6131
2 changed files with 5 additions and 1 deletions

View File

@ -453,6 +453,7 @@ class Bootstrap {
}
// upload the keys!
state = BootstrapState.loading;
Logs().v('Upload device signing keys.');
await client.uiaRequestBackground(
(AuthenticationData auth) => client.uploadDeviceSigningKeys(
masterKey: masterKey,
@ -460,6 +461,7 @@ class Bootstrap {
userSigningKey: userSigningKey,
auth: auth,
));
Logs().v('Device signing keys have been uploaded.');
// aaaand set the SSSS secrets
final futures = <Future<void>>[];
if (masterKey != null) {
@ -481,6 +483,7 @@ class Bootstrap {
.then((_) =>
Logs().v('New Key with type ${entry.key} was created')),
);
Logs().v('Store new SSSS key ${entry.key}...');
await newSsssKey.store(entry.key, entry.value);
}
Logs().v(

View File

@ -471,10 +471,11 @@ class Client extends MatrixApi {
completer.complete(uia.result);
} else if (state == UiaRequestState.fail) {
completer.completeError(uia.error);
} else {
onUiaRequest.add(uia);
}
},
);
onUiaRequest.add(uia);
return completer.future;
}