diff --git a/spec/integ/crypto/rust-crypto.spec.ts b/spec/integ/crypto/rust-crypto.spec.ts index a1b7a7545ed..5aee7e83582 100644 --- a/spec/integ/crypto/rust-crypto.spec.ts +++ b/spec/integ/crypto/rust-crypto.spec.ts @@ -66,26 +66,6 @@ describe("MatrixClient.initRustCrypto", () => { expect(databaseNames).toEqual(expect.arrayContaining(["matrix-js-sdk::matrix-sdk-crypto"])); }); - it("should create the meta db if given a pickleKey", async () => { - const matrixClient = createClient({ - baseUrl: "http://test.server", - userId: "@alice:localhost", - deviceId: "aliceDevice", - pickleKey: "testKey", - }); - - // No databases. - expect(await indexedDB.databases()).toHaveLength(0); - - await matrixClient.initRustCrypto(); - - // should have two indexed dbs now - const databaseNames = (await indexedDB.databases()).map((db) => db.name); - expect(databaseNames).toEqual( - expect.arrayContaining(["matrix-js-sdk::matrix-sdk-crypto", "matrix-js-sdk::matrix-sdk-crypto-meta"]), - ); - }); - it("should create the meta db if given a storageKey", async () => { const matrixClient = createClient({ baseUrl: "http://test.server", @@ -470,10 +450,9 @@ describe("MatrixClient.clearStores", () => { baseUrl: "http://test.server", userId: "@alice:localhost", deviceId: "aliceDevice", - pickleKey: "testKey", }); - await matrixClient.initRustCrypto(); + await matrixClient.initRustCrypto({ storagePassword: "testKey" }); expect(await indexedDB.databases()).toHaveLength(2); await matrixClient.stopClient(); diff --git a/src/client.ts b/src/client.ts index 300b5903399..e71281c818a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2232,9 +2232,7 @@ export class MatrixClient extends TypedEventEmitter