Replace MatrixClient.isRoomEncrypted
by MatrixClient.CryptoApi.isEncryptionEnabledInRoom
in MemberListStore.tsx
This commit is contained in:
parent
6533a6b642
commit
f8c5eac8a9
2 changed files with 4 additions and 5 deletions
|
@ -189,8 +189,7 @@ describe("MemberListStore", () => {
|
|||
});
|
||||
|
||||
it("does not use lazy loading on encrypted rooms", async () => {
|
||||
client.isRoomEncrypted = jest.fn();
|
||||
mocked(client.isRoomEncrypted).mockReturnValue(true);
|
||||
jest.spyOn(client.getCrypto()!, "isEncryptionEnabledInRoom").mockResolvedValue(true);
|
||||
|
||||
const { joined } = await store.loadMemberList(roomId);
|
||||
expect(joined).toEqual([room.getMember(alice)]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue