1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Playwright: use rust crypto for the bot user (#12708)

... because legacy crypto is legacy
This commit is contained in:
Richard van der Hoff
2024-06-27 16:43:24 +01:00
committed by GitHub
parent b449dc835b
commit 8feaae66fb
2 changed files with 1 additions and 10 deletions

View File

@ -45,10 +45,6 @@ export interface CreateBotOpts {
* Whether to generate cross-signing keys
*/
bootstrapCrossSigning?: boolean;
/**
* Whether to use the rust crypto impl. Defaults to false (for now!)
*/
rustCrypto?: boolean;
/**
* Whether to bootstrap the secret storage
*/
@ -188,11 +184,7 @@ export class Bot extends Client {
return cli;
}
if (opts.rustCrypto) {
await cli.initRustCrypto({ useIndexedDB: false });
} else {
await cli.initCrypto();
}
await cli.initRustCrypto({ useIndexedDB: false });
cli.setGlobalErrorOnUnknownDevices(false);
await cli.startClient();