1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00

Element-R: Implement VerificationRequest.accept (#3526)

* Pass `supportedVerificationMethods` into `VerificationRequest`

... so that the application can later call `accept()` and we know what to send.

* Implement `VerificationRequest.accept`

* Implement `VerificationRequest.declining`

* Update src/rust-crypto/verification.ts
This commit is contained in:
Richard van der Hoff
2023-07-03 12:02:19 +01:00
committed by GitHub
parent c271e1533a
commit 3a8a1389f5
5 changed files with 113 additions and 28 deletions

View File

@ -32,7 +32,7 @@ describe("VerificationRequest", () => {
startSas: jest.fn(),
} as unknown as Mocked<RustSdkCryptoJs.VerificationRequest>;
mockedOutgoingRequestProcessor = {} as Mocked<OutgoingRequestProcessor>;
request = new RustVerificationRequest(mockedInner, mockedOutgoingRequestProcessor);
request = new RustVerificationRequest(mockedInner, mockedOutgoingRequestProcessor, undefined);
});
it("does not permit methods other than SAS", async () => {