Refactor CreateCrossSigningDialog

* Converts CreateCrossSigningDialog to a functional component
 * Pulls logic out to its own class
 * Updates usage of deprecated cross signing bootstrap method on client to be on the crypto object and updates test to match

Moved from https://github.com/element-hq/matrix-react-sdk/pull/131
This commit is contained in:
David Baker
2024-10-17 10:43:44 +01:00
parent f4a254a303
commit dcba7c7776
7 changed files with 387 additions and 155 deletions
+1
View File
@@ -129,6 +129,7 @@ export function createTestClient(): MatrixClient {
getVerificationRequestsToDeviceInProgress: jest.fn().mockReturnValue([]),
setDeviceIsolationMode: jest.fn(),
prepareToEncrypt: jest.fn(),
bootstrapCrossSigning: jest.fn(),
}),
getPushActionsForEvent: jest.fn(),