From c54b9c911f1f10210a3c80405afa1a05f1d5fe34 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 15 Sep 2016 11:31:54 +0100 Subject: [PATCH] Add the olm version to the settings page. --- src/components/structures/UserSettings.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 22ac7c7c72..714566e94c 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -511,6 +511,14 @@ module.exports = React.createClass({ ); } + var olmVersion = MatrixClientPeg.get().olmVersion; + // If the olmVersion is not defined then either crypto is disabled, or + // we are using a version old version of olm. We assume the former. + var olmVersionString = ""; + if (olmVersion !== undefined) { + olmVersionString = olmVersion[0] + "." + olmVersion[1] + "." + olmVersion[2]; + } + return (
matrix-react-sdk version: {REACT_SDK_VERSION}
vector-web version: {this.props.version}
+ olm version: {olmVersionString}