From 6777e07a41f69697df9e495fb752343daa3b3530 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 5 Dec 2016 20:03:43 +0000 Subject: [PATCH] Remove device name from crypto section As it was getting it by assuming our device was the first one, which is just not a valid assumption. --- src/components/structures/UserSettings.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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}