Replace MatrixClient.isRoomEncrypted
by MatrixClient.CryptoApi.isEncryptionEnabledInRoom
in SendMessageComposer.tsx
This commit is contained in:
parent
d7ef409df8
commit
6bf06da02c
2 changed files with 13 additions and 13 deletions
|
@ -605,7 +605,7 @@ describe("<SendMessageComposer/>", () => {
|
|||
|
||||
it("should call prepareToEncrypt when the user is typing", async () => {
|
||||
const cli = stubClient();
|
||||
cli.isRoomEncrypted = jest.fn().mockReturnValue(true);
|
||||
jest.spyOn(cli.getCrypto()!, "isEncryptionEnabledInRoom").mockResolvedValue(true);
|
||||
const room = mkStubRoom("!roomId:server", "Room", cli);
|
||||
|
||||
expect(cli.getCrypto()!.prepareToEncrypt).not.toHaveBeenCalled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue