From 8feaae66fb34f460c1d1658ae827f6b229456eee Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:43:24 +0100 Subject: [PATCH] Playwright: use rust crypto for the bot user (#12708) ... because legacy crypto is legacy --- playwright/e2e/crypto/verification.spec.ts | 1 - playwright/pages/bot.ts | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/playwright/e2e/crypto/verification.spec.ts b/playwright/e2e/crypto/verification.spec.ts index 93344d2c08..167c302b47 100644 --- a/playwright/e2e/crypto/verification.spec.ts +++ b/playwright/e2e/crypto/verification.spec.ts @@ -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, }); diff --git a/playwright/pages/bot.ts b/playwright/pages/bot.ts index 333d895dfe..3b46130108 100644 --- a/playwright/pages/bot.ts +++ b/playwright/pages/bot.ts @@ -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();