You've already forked matrix-js-sdk
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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user