You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
Hide e2e features if not enabled
Don't show the device info in the MemberInfo and UserSettings unless the user has ticked the 'labs' box.
This commit is contained in:
@@ -258,6 +258,10 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
_renderDeviceInfo: function() {
|
||||
if (!UserSettingsStore.isFeatureEnabled("e2e_encryption")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var client = MatrixClientPeg.get();
|
||||
var deviceId = client.deviceId;
|
||||
var olmKey = client.getDeviceEd25519Key() || "<not supported>";
|
||||
|
||||
Reference in New Issue
Block a user