You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Remove references to internal js-sdk type CryptoBackend
(#12321)
* Remove references to internal js-sdk type `CryptoBackend` * Use `Paramteters` to avoid `ts-ignore`
This commit is contained in:
committed by
GitHub
parent
8bd74f517c
commit
91020b3d00
@ -29,7 +29,6 @@ import {
|
||||
TweakName,
|
||||
} from "matrix-js-sdk/src/matrix";
|
||||
import { EventEncryptionInfo, EventShieldColour, EventShieldReason } from "matrix-js-sdk/src/crypto-api";
|
||||
import { CryptoBackend } from "matrix-js-sdk/src/common-crypto/CryptoBackend";
|
||||
import { TooltipProvider } from "@vector-im/compound-web";
|
||||
|
||||
import EventTile, { EventTileProps } from "../../../../src/components/views/rooms/EventTile";
|
||||
@ -320,8 +319,7 @@ describe("EventTile", () => {
|
||||
decryptEvent: async (_ev): Promise<IEventDecryptionResult> => {
|
||||
throw new Error("can't decrypt");
|
||||
},
|
||||
} as CryptoBackend;
|
||||
|
||||
} as Parameters<MatrixEvent["attemptDecryption"]>[0];
|
||||
await mxEvent.attemptDecryption(mockCrypto);
|
||||
|
||||
const { container } = getComponent();
|
||||
|
Reference in New Issue
Block a user