1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-08-06 16:22:46 +03:00

Second batch: remove deprecated calls on MatrixClient (#28227)

* Replace `MatrixClient.forceDiscardSession` call by `MatrixClient.CryptoApi.forceDiscardSession`

* Remove `MatrixClient.scheduleAllGroupSessionsForBackup` mock
This commit is contained in:
Florian Duros
2024-10-18 09:51:53 +02:00
committed by GitHub
parent e79916454f
commit 85d2bf3a04
2 changed files with 1 additions and 2 deletions

View File

@@ -166,7 +166,6 @@ export function createTestClient(): MatrixClient {
});
}),
mxcUrlToHttp: jest.fn().mockImplementation((mxc: string) => `http://this.is.a.url/${mxc.substring(6)}`),
scheduleAllGroupSessionsForBackup: jest.fn().mockResolvedValue(undefined),
setAccountData: jest.fn(),
setRoomAccountData: jest.fn(),
setRoomTopic: jest.fn(),