1
0
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:
Hubert Chathi
2021-10-21 16:10:13 -04:00
committed by GitHub
parent 59b3960a42
commit 0385f265e8

View File

@@ -1755,6 +1755,7 @@ export class MatrixClient extends EventEmitter {
* @param {string} deviceId the device to verify
*
* @returns {Verification} a verification object
* @deprecated Use `requestVerification` instead.
*/
public beginKeyVerification(method: string, userId: string, deviceId: string): Verification {
if (!this.crypto) {
@@ -1917,6 +1918,7 @@ export class MatrixClient extends EventEmitter {
return this.crypto.checkCrossSigningPrivateKey(privateKey, expectedPublicKey);
}
// deprecated: use requestVerification instead
public legacyDeviceVerification(
userId: string,
deviceId: string,