mirror of https://github.com/vector-im/riot-web
Playwright: use rust crypto for the bot user (#12708)
... because legacy crypto is legacypull/28217/head
parent
b449dc835b
commit
8feaae66fb
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue