You've already forked matrix-js-sdk
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:
@@ -155,6 +155,8 @@ function MatrixClient(opts) {
|
||||
opts.sessionStore,
|
||||
userId, this.deviceId
|
||||
);
|
||||
|
||||
this.olmVersion = Crypto.getOlmVersion();
|
||||
}
|
||||
}
|
||||
utils.inherits(MatrixClient, EventEmitter);
|
||||
|
||||
@@ -77,7 +77,7 @@ function _initialise_account(sessionStore, pickleKey, account) {
|
||||
*/
|
||||
OlmDevice.getOlmVersion = function() {
|
||||
return Olm.get_library_version();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user