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

View File

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