Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Playwright: use rust crypto for the bot user (#12708)
Browse files Browse the repository at this point in the history
... because legacy crypto is legacy
  • Loading branch information
richvdh authored and dbkr committed Jun 27, 2024
1 parent 3ee4ecd commit aeca0bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion playwright/e2e/crypto/verification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ test.describe("Device verification", () => {

// Create a new device for alice
aliceBotClient = new Bot(page, homeserver, {
rustCrypto: true,
bootstrapCrossSigning: true,
bootstrapSecretStorage: true,
});
Expand Down
10 changes: 1 addition & 9 deletions playwright/pages/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit aeca0bb

Please sign in to comment.