From d526229a0fe13e52abf6716c0266ea6a4f56f25f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 20 Jan 2020 18:12:52 +0100 Subject: [PATCH] update jsdoc of requestVerificationDM which now returns a Promise of VerificationRequest instead of verifier --- src/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.js b/src/client.js index 12671d27f..0e4a4b5b8 100644 --- a/src/client.js +++ b/src/client.js @@ -853,8 +853,8 @@ async function _setDeviceVerification( * @param {Array} methods array of verification methods to use. Defaults to * all known methods * - * @returns {Promise} resolves to a verifier - * when the request is accepted by the other user + * @returns {Promise} resolves to a VerificationRequest + * when the request has been sent to the other party. */ MatrixClient.prototype.requestVerificationDM = function(userId, roomId, methods) { if (this._crypto === null) {