1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Make Crypto.setDeviceVerification async

This commit is contained in:
Richard van der Hoff
2017-07-21 10:41:21 +01:00
parent 25ccd6bc6d
commit 23d66b9746
2 changed files with 5 additions and 4 deletions

View File

@@ -523,7 +523,7 @@ async function _setDeviceVerification(
if (!client._crypto) {
throw new Error("End-to-End encryption disabled");
}
const dev = client._crypto.setDeviceVerification(
const dev = await client._crypto.setDeviceVerification(
userId, deviceId, verified, blocked, known,
);
client.emit("deviceVerificationChanged", userId, deviceId, dev);