Add the olm version to the settings page.
This commit is contained in:
parent
f95a74951e
commit
c54b9c911f
1 changed files with 9 additions and 0 deletions
|
@ -511,6 +511,14 @@ module.exports = React.createClass({
|
||||||
</div>);
|
</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 (
|
return (
|
||||||
<div className="mx_UserSettings">
|
<div className="mx_UserSettings">
|
||||||
<SimpleRoomHeader
|
<SimpleRoomHeader
|
||||||
|
@ -586,6 +594,7 @@ module.exports = React.createClass({
|
||||||
<div className="mx_UserSettings_advanced">
|
<div className="mx_UserSettings_advanced">
|
||||||
matrix-react-sdk version: {REACT_SDK_VERSION}<br/>
|
matrix-react-sdk version: {REACT_SDK_VERSION}<br/>
|
||||||
vector-web version: {this.props.version}<br/>
|
vector-web version: {this.props.version}<br/>
|
||||||
|
olm version: {olmVersionString}<br/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue