added device key in settings
authorunknown <ajbura@gmail.com>
Thu, 19 Aug 2021 16:54:09 +0000 (22:24 +0530)
committerunknown <ajbura@gmail.com>
Thu, 19 Aug 2021 16:54:09 +0000 (22:24 +0530)
src/app/organisms/settings/Settings.jsx

index 18a60c9c3b0fad5cb8dc48e0ea21556bfdf0c647..51cb1deae700f647f46401b4a5bf89138a4bb81e 100644 (file)
@@ -62,7 +62,10 @@ function SecuritySection() {
     <div className="set-security settings-content">
       <SettingTile
         title={`Device ID: ${initMatrix.matrixClient.getDeviceId()}`}
-        content={<Text variant="b3">Use this device ID to verify or manage this session from Element client.</Text>}
+      />
+      <SettingTile
+        title={`Device key: ${initMatrix.matrixClient.getDeviceEd25519Key().match(/.{1,4}/g).join(' ')}`}
+        content={<Text variant="b3">Use this device ID-key combo to verify or manage this session from Element client.</Text>}
       />
       <SettingTile
         title="Import E2E room keys"