You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Mark old verification methods as deprecated (#1994)
The old verification methods start a verification by sending an `m.key.verification.start` message, rather than an `m.key.verification.request` message. This behaviour is deprecated in the spec (https://github.com/matrix-org/matrix-doc/pull/3122), so these functions should be deprecated too.
This commit is contained in:
@@ -1755,6 +1755,7 @@ export class MatrixClient extends EventEmitter {
|
|||||||
* @param {string} deviceId the device to verify
|
* @param {string} deviceId the device to verify
|
||||||
*
|
*
|
||||||
* @returns {Verification} a verification object
|
* @returns {Verification} a verification object
|
||||||
|
* @deprecated Use `requestVerification` instead.
|
||||||
*/
|
*/
|
||||||
public beginKeyVerification(method: string, userId: string, deviceId: string): Verification {
|
public beginKeyVerification(method: string, userId: string, deviceId: string): Verification {
|
||||||
if (!this.crypto) {
|
if (!this.crypto) {
|
||||||
@@ -1917,6 +1918,7 @@ export class MatrixClient extends EventEmitter {
|
|||||||
return this.crypto.checkCrossSigningPrivateKey(privateKey, expectedPublicKey);
|
return this.crypto.checkCrossSigningPrivateKey(privateKey, expectedPublicKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// deprecated: use requestVerification instead
|
||||||
public legacyDeviceVerification(
|
public legacyDeviceVerification(
|
||||||
userId: string,
|
userId: string,
|
||||||
deviceId: string,
|
deviceId: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user