From 4ba083e6af667cdee3ff50fdde2cd0109e478208 Mon Sep 17 00:00:00 2001 From: Faye Duxovni Date: Wed, 28 Sep 2022 10:39:37 -0400 Subject: [PATCH] Bump IDB crypto store version (#2705) * Bump IDB crypto store version * lint fix --- spec/unit/crypto/secrets.spec.ts | 1 - spec/unit/crypto/verification/sas.spec.ts | 4 ++-- spec/unit/models/beacon.spec.ts | 3 ++- src/crypto/store/indexeddb-crypto-store-backend.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/unit/crypto/secrets.spec.ts b/spec/unit/crypto/secrets.spec.ts index 9c8b25384..d6ae8c3a3 100644 --- a/spec/unit/crypto/secrets.spec.ts +++ b/spec/unit/crypto/secrets.spec.ts @@ -251,7 +251,6 @@ describe("Secrets", function() { osborne2.client.crypto.deviceList.storeDevicesForUser("@alice:example.com", { "VAX": { - verified: 0, known: false, algorithms: [olmlib.OLM_ALGORITHM, olmlib.MEGOLM_ALGORITHM], keys: { diff --git a/spec/unit/crypto/verification/sas.spec.ts b/spec/unit/crypto/verification/sas.spec.ts index fc0a0d9bd..32932b7e5 100644 --- a/spec/unit/crypto/verification/sas.spec.ts +++ b/spec/unit/crypto/verification/sas.spec.ts @@ -573,7 +573,7 @@ describe("SAS verification", function() { null, null, { "ed25519:Dynabook": "bob+base64+ed25519+key" }, - ); + ); expect(bob.client.crypto.setDeviceVerification) .toHaveBeenCalledWith( alice.client.getUserId(), @@ -582,7 +582,7 @@ describe("SAS verification", function() { null, null, { "ed25519:Osborne2": "alice+base64+ed25519+key" }, - ); + ); }); }); }); diff --git a/spec/unit/models/beacon.spec.ts b/spec/unit/models/beacon.spec.ts index 49006c781..3b2f75a06 100644 --- a/spec/unit/models/beacon.spec.ts +++ b/spec/unit/models/beacon.spec.ts @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +import { REFERENCE_RELATION } from "matrix-events-sdk"; + import { MatrixEvent } from "../../../src"; import { M_BEACON_INFO } from "../../../src/@types/beacon"; import { @@ -22,7 +24,6 @@ import { BeaconEvent, } from "../../../src/models/beacon"; import { makeBeaconEvent, makeBeaconInfoEvent } from "../../test-utils/beacon"; -import { REFERENCE_RELATION } from "matrix-events-sdk"; jest.useFakeTimers(); diff --git a/src/crypto/store/indexeddb-crypto-store-backend.ts b/src/crypto/store/indexeddb-crypto-store-backend.ts index a4d46b12f..64a2d6f9a 100644 --- a/src/crypto/store/indexeddb-crypto-store-backend.ts +++ b/src/crypto/store/indexeddb-crypto-store-backend.ts @@ -34,7 +34,7 @@ import { IRoomEncryption } from "../RoomList"; import { InboundGroupSessionData } from "../OlmDevice"; import { IEncryptedPayload } from "../aes"; -export const VERSION = 10; +export const VERSION = 11; const PROFILE_TRANSACTIONS = false; /**