You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Add new enum for verification methods. (#4129)
* Define constants for the verification methods. * Remove some confusing references to the *old* `VerificationMethod`
This commit is contained in:
committed by
GitHub
parent
d1259b241c
commit
d5a35f8a99
@@ -73,8 +73,14 @@ import { ISignatures } from "../@types/signed";
|
||||
import { encodeBase64 } from "../base64";
|
||||
import { OutgoingRequestsManager } from "./OutgoingRequestsManager";
|
||||
import { PerSessionKeyBackupDownloader } from "./PerSessionKeyBackupDownloader";
|
||||
import { VerificationMethod } from "../types";
|
||||
|
||||
const ALL_VERIFICATION_METHODS = ["m.sas.v1", "m.qr_code.scan.v1", "m.qr_code.show.v1", "m.reciprocate.v1"];
|
||||
const ALL_VERIFICATION_METHODS = [
|
||||
VerificationMethod.Sas,
|
||||
VerificationMethod.ScanQrCode,
|
||||
VerificationMethod.ShowQrCode,
|
||||
VerificationMethod.Reciprocate,
|
||||
];
|
||||
|
||||
interface ISignableObject {
|
||||
signatures?: ISignatures;
|
||||
|
||||
Reference in New Issue
Block a user