Skip to content

Commit

Permalink
Add Olm prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Oct 24, 2023
1 parent 6fe2eb7 commit dc71f6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/unit/crypto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`,
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/crypto-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ export class Crypto extends TypedEventEmitter<CryptoEvent, CryptoEventHandlerMap
*/
public getVersion(): string {
const olmVersionTuple = Crypto.getOlmVersion();
return `${olmVersionTuple[0]}.${olmVersionTuple[1]}.${olmVersionTuple[2]}`;
return `Olm ${olmVersionTuple[0]}.${olmVersionTuple[1]}.${olmVersionTuple[2]}`;
}

/**
Expand Down

0 comments on commit dc71f6c

Please sign in to comment.