Merge pull request #300 from matrix-org/rav/device_verification

Support for marking devices as verified
This commit is contained in:
Richard van der Hoff
2016-06-09 10:44:42 +01:00
5 changed files with 218 additions and 23 deletions

View File

@@ -246,6 +246,23 @@ module.exports = React.createClass({
});
},
_renderDeviceInfo: function() {
var client = MatrixClientPeg.get();
var deviceId = client.deviceId;
var olmKey = client.getDeviceEd25519Key() || "<not supported>";
return (
<div>
<h3>Cryptography</h3>
<div className="mx_UserSettings_section">
<ul>
<li>Device ID: {deviceId}</li>
<li>Device key: {olmKey}</li>
</ul>
</div>
</div>
);
},
render: function() {
var self = this;
var Loader = sdk.getComponent("elements.Spinner");
@@ -392,6 +409,8 @@ module.exports = React.createClass({
{notification_area}
{this._renderDeviceInfo()}
<h3>Advanced</h3>
<div className="mx_UserSettings_section">