1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

Add a bunch of logging to verification

So we have a better idea of what's going on
This commit is contained in:
David Baker
2020-02-04 12:04:50 +00:00
parent 57a7328065
commit cf94527bd5
3 changed files with 13 additions and 0 deletions

View File

@@ -303,6 +303,10 @@ export class VerificationBase extends EventEmitter {
throw new Error("No devices could be verified");
}
logger.info("Verification completed! Marking devices verified: ", verifiedDevices);
// TODO: There should probably be a batch version of this, otherwise it's going
// to upload each signature in a separate API call which is silly because the
// API supports as many signatures as you like.
for (const deviceId of verifiedDevices) {
await this._baseApis.setDeviceVerified(userId, deviceId);
}