basic verification UI

This commit is contained in:
Matthew Hodgson 2016-09-15 01:55:51 +01:00
parent d8770b2b41
commit 8bda0bb095
4 changed files with 60 additions and 13 deletions

View file

@ -72,6 +72,7 @@ module.exports = React.createClass({
getInitialState: function() {
return {
avatarUrl: null,
myDevice: null,
threePids: [],
phase: "UserSettings.LOADING", // LOADING, DISPLAY
email_add_pending: false,
@ -342,14 +343,17 @@ module.exports = React.createClass({
var client = MatrixClientPeg.get();
var deviceId = client.deviceId;
var olmKey = client.getDeviceEd25519Key() || "<not supported>";
var identityKey = client.getDeviceEd25519Key() || "<not supported>";
var myDevice = client.getStoredDevicesForUser(MatrixClientPeg.get().credentials.userId)[0];
return (
<div>
<h3>Cryptography</h3>
<div className="mx_UserSettings_section">
<div className="mx_UserSettings_section mx_UserSettings_cryptoSection">
<ul>
<li>Device ID: {deviceId}</li>
<li>Device key: {olmKey}</li>
<li><label>Device name:</label> <span>{ myDevice.getDisplayName() }</span></li>
<li><label>Device ID:</label> <span><code>{deviceId}</code></span></li>
<li><label>Device key:</label> <span><code><b>{identityKey}</b></code></span></li>
</ul>
</div>
</div>
@ -364,7 +368,7 @@ module.exports = React.createClass({
return (
<div>
<h3>Devices</h3>
<DevicesPanel className="mx_UserSettings_section" />
<DevicesPanel className="mx_UserSettings_section"/>
</div>
);
},