diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js
index c15f58013e..49674957bc 100644
--- a/src/components/structures/UserSettings.js
+++ b/src/components/structures/UserSettings.js
@@ -339,25 +339,14 @@ module.exports = React.createClass({
_renderCryptoInfo: function() {
const client = MatrixClientPeg.get();
- if (!client.isCryptoEnabled()) {
- return
-
Cryptography
-
- End-to-end encryption is disabled
-
-
;
- }
+ const deviceId = client.deviceId;
+ const identityKey = client.getDeviceEd25519Key() || "";
- var deviceId = client.deviceId;
- var identityKey = client.getDeviceEd25519Key() || "";
-
- var myDevice = client.getStoredDevicesForUser(MatrixClientPeg.get().credentials.userId)[0];
return (
Cryptography
- - { myDevice.getDisplayName() }
-
{deviceId}
-
{identityKey}