Replace MatrixClient.isRoomEncrypted
by MatrixClient.CryptoApi.isEncryptionEnabledInRoom
in EventTile.tsx
This commit is contained in:
parent
b907ec380f
commit
dc53178ea6
4 changed files with 60 additions and 4 deletions
|
@ -32,6 +32,7 @@ import {
|
|||
mkEvent,
|
||||
mkMessage,
|
||||
mkStubRoom,
|
||||
mockClientMethodsCrypto,
|
||||
mockPlatformPeg,
|
||||
} from "../../../../test-utils";
|
||||
import { TILE_SERVER_WK_KEY } from "../../../../../src/utils/WellKnownUtils";
|
||||
|
@ -67,7 +68,6 @@ describe("ForwardDialog", () => {
|
|||
getAccountData: jest.fn().mockReturnValue(accountDataEvent),
|
||||
getPushActionsForEvent: jest.fn(),
|
||||
mxcUrlToHttp: jest.fn().mockReturnValue(""),
|
||||
isRoomEncrypted: jest.fn().mockReturnValue(false),
|
||||
getProfileInfo: jest.fn().mockResolvedValue({
|
||||
displayname: "Alice",
|
||||
}),
|
||||
|
@ -76,6 +76,7 @@ describe("ForwardDialog", () => {
|
|||
getClientWellKnown: jest.fn().mockReturnValue({
|
||||
[TILE_SERVER_WK_KEY.name]: { map_style_url: "maps.com" },
|
||||
}),
|
||||
...mockClientMethodsCrypto(),
|
||||
});
|
||||
const defaultRooms = ["a", "A", "b"].map((name) => mkStubRoom(name, name, mockClient));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue