1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

Add olm version to client. Add semicolons.

This commit is contained in:
Mark Haines
2016-09-14 20:03:31 +01:00
parent 0d20a0acf0
commit 38681202dc
3 changed files with 5 additions and 3 deletions

View File

@@ -155,6 +155,8 @@ function MatrixClient(opts) {
opts.sessionStore,
userId, this.deviceId
);
this.olmVersion = Crypto.getOlmVersion();
}
}
utils.inherits(MatrixClient, EventEmitter);

View File

@@ -77,7 +77,7 @@ function _initialise_account(sessionStore, pickleKey, account) {
*/
OlmDevice.getOlmVersion = function() {
return Olm.get_library_version();
}
};
/**

View File

@@ -122,8 +122,8 @@ function _registerEventHandlers(crypto, eventEmitter) {
* @return {string} The version of Olm.
*/
Crypto.getOlmVersion = function() {
return OlmDevice.getOlmVersion()
}
return OlmDevice.getOlmVersion();
};
/**
* Get the Ed25519 key for this device