Add the olm version to the settings page.

This commit is contained in:
Mark Haines 2016-09-15 11:31:54 +01:00
parent f95a74951e
commit c54b9c911f

View file

@ -511,6 +511,14 @@ module.exports = React.createClass({
</div>);
}
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 = "<not-enabled>";
if (olmVersion !== undefined) {
olmVersionString = olmVersion[0] + "." + olmVersion[1] + "." + olmVersion[2];
}
return (
<div className="mx_UserSettings">
<SimpleRoomHeader
@ -586,6 +594,7 @@ module.exports = React.createClass({
<div className="mx_UserSettings_advanced">
matrix-react-sdk version: {REACT_SDK_VERSION}<br/>
vector-web version: {this.props.version}<br/>
olm version: {olmVersionString}<br/>
</div>
</div>