Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom in RoomView

This commit is contained in:
Florian Duros 2024-10-23 15:24:38 +02:00
parent c2ce7dbc5e
commit 4be697d4c2
No known key found for this signature in database
GPG key ID: A5BBB4041B493F15
4 changed files with 109 additions and 67 deletions

View file

@ -117,7 +117,7 @@ export function createTestClient(): MatrixClient {
getCrypto: jest.fn().mockReturnValue({
getOwnDeviceKeys: jest.fn(),
getUserDeviceInfo: jest.fn(),
getUserDeviceInfo: jest.fn().mockResolvedValue(new Map()),
getUserVerificationStatus: jest.fn(),
getDeviceVerificationStatus: jest.fn(),
resetKeyBackup: jest.fn(),