1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-05 17:02:07 +03:00

update jsdoc of requestVerificationDM

which now returns a Promise of VerificationRequest instead of verifier
This commit is contained in:
Bruno Windels
2020-01-20 18:12:52 +01:00
parent aac68290ac
commit d526229a0f

View File

@@ -853,8 +853,8 @@ async function _setDeviceVerification(
* @param {Array} methods array of verification methods to use. Defaults to * @param {Array} methods array of verification methods to use. Defaults to
* all known methods * all known methods
* *
* @returns {Promise<module:crypto/verification/Base>} resolves to a verifier * @returns {Promise<module:crypto/verification/request/VerificationRequest>} resolves to a VerificationRequest
* when the request is accepted by the other user * when the request has been sent to the other party.
*/ */
MatrixClient.prototype.requestVerificationDM = function(userId, roomId, methods) { MatrixClient.prototype.requestVerificationDM = function(userId, roomId, methods) {
if (this._crypto === null) { if (this._crypto === null) {