diff --git a/cypress/e2e/crypto/utils.ts b/cypress/e2e/crypto/utils.ts index aeb15eab11..5d4d9dc304 100644 --- a/cypress/e2e/crypto/utils.ts +++ b/cypress/e2e/crypto/utils.ts @@ -49,12 +49,15 @@ export function waitForVerificationRequest(cli: MatrixClient): Promise { return new Promise((resolve) => { const onShowSas = (event: ISasEvent) => { + // @ts-ignore VerifierEvent is a pain to get at here as we don't have a reference to matrixcs; + // using the string value here verifier.off("show_sas", onShowSas); event.confirm(); resolve(event.sas.emoji); }; const verifier = request.beginKeyVerification("m.sas.v1"); + // @ts-ignore as above, avoiding reference to VerifierEvent verifier.on("show_sas", onShowSas); verifier.verify(); });