You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-04 23:02:14 +03:00
Add device info to user settings
Requires e81ce23 from matrix-js-sdk
This commit is contained in:
@@ -244,6 +244,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() {
|
render: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
var Loader = sdk.getComponent("elements.Spinner");
|
var Loader = sdk.getComponent("elements.Spinner");
|
||||||
@@ -390,6 +407,8 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
{notification_area}
|
{notification_area}
|
||||||
|
|
||||||
|
{this._renderDeviceInfo()}
|
||||||
|
|
||||||
<h3>Advanced</h3>
|
<h3>Advanced</h3>
|
||||||
|
|
||||||
<div className="mx_UserSettings_section">
|
<div className="mx_UserSettings_section">
|
||||||
|
Reference in New Issue
Block a user