Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom in MemberListStore.tsx

This commit is contained in:
Florian Duros 2024-11-14 17:59:18 +01:00
parent 6533a6b642
commit f8c5eac8a9
No known key found for this signature in database
GPG key ID: A5BBB4041B493F15
2 changed files with 4 additions and 5 deletions

View file

@ -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)]);