From dc71f6c5f4761777cc45190b500b8d6911ccbb77 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 24 Oct 2023 11:44:01 +0200 Subject: [PATCH] Add `Olm` prefix --- spec/unit/crypto.spec.ts | 2 +- src/crypto-api.ts | 2 +- src/crypto/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/crypto.spec.ts b/spec/unit/crypto.spec.ts index b95e9159f46..e59da2d3950 100644 --- a/spec/unit/crypto.spec.ts +++ b/spec/unit/crypto.spec.ts @@ -121,7 +121,7 @@ describe("Crypto", function () { const olmVersionTuple = Crypto.getOlmVersion(); expect(client.getCrypto()?.getVersion()).toBe( - `${olmVersionTuple[0]}.${olmVersionTuple[1]}.${olmVersionTuple[2]}`, + `Olm ${olmVersionTuple[0]}.${olmVersionTuple[1]}.${olmVersionTuple[2]}`, ); }); diff --git a/src/crypto-api.ts b/src/crypto-api.ts index 5c9d3b0d98b..2b23ba200fb 100644 --- a/src/crypto-api.ts +++ b/src/crypto-api.ts @@ -42,7 +42,7 @@ export interface CryptoApi { /** * Return the current version of the Rust SDK and the Vodozemac library * Rust crypto: the format is `Rust SDK ${versions.matrix_sdk_crypto}, Vodozemac ${versions.vodozemac}` - * Old Crypto: the format is `x.x.x` + * Old Crypto: the format is `Olm x.x.x` * XXXX: remove old crypto when we remove support for it * @returns the formatted version */ diff --git a/src/crypto/index.ts b/src/crypto/index.ts index d3b6133fd1f..f643491cf05 100644 --- a/src/crypto/index.ts +++ b/src/crypto/index.ts @@ -615,7 +615,7 @@ export class Crypto extends TypedEventEmitter