1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Deprecate MatrixClient.checkUserTrust (#3691)

* New `CryptoApi.getUserVerificationStatus` API

* Add `RustCrypto#getUserVerificationStatus` tests

---------

Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
Richard van der Hoff
2023-09-05 15:58:10 +01:00
committed by GitHub
parent 8e0ef98bcc
commit 74160806c0
8 changed files with 127 additions and 53 deletions

View File

@@ -2643,6 +2643,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* The cross-signing API is currently UNSTABLE and may change without notice.
*
* @param userId - The ID of the user to check.
*
* @deprecated Use {@link Crypto.CryptoApi.getUserVerificationStatus | `CryptoApi.getUserVerificationStatus`}
*/
public checkUserTrust(userId: string): UserTrustLevel {
if (!this.cryptoBackend) {