Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom in SendMessageComposer.tsx
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user