mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Merge pull request #306 from matrix-org/rav/labify_e2e
Hide e2e features if not enabled
This commit is contained in:
commit
094d54b398
2 changed files with 9 additions and 0 deletions
|
@ -258,6 +258,10 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_renderDeviceInfo: function() {
|
_renderDeviceInfo: function() {
|
||||||
|
if (!UserSettingsStore.isFeatureEnabled("e2e_encryption")) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var client = MatrixClientPeg.get();
|
var client = MatrixClientPeg.get();
|
||||||
var deviceId = client.deviceId;
|
var deviceId = client.deviceId;
|
||||||
var olmKey = client.getDeviceEd25519Key() || "<not supported>";
|
var olmKey = client.getDeviceEd25519Key() || "<not supported>";
|
||||||
|
|
|
@ -30,6 +30,7 @@ var MatrixClientPeg = require("../../../MatrixClientPeg");
|
||||||
var dis = require("../../../dispatcher");
|
var dis = require("../../../dispatcher");
|
||||||
var Modal = require("../../../Modal");
|
var Modal = require("../../../Modal");
|
||||||
var sdk = require('../../../index');
|
var sdk = require('../../../index');
|
||||||
|
var UserSettingsStore = require('../../../UserSettingsStore');
|
||||||
var createRoom = require('../../../createRoom');
|
var createRoom = require('../../../createRoom');
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
|
@ -506,6 +507,10 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_renderDevices: function() {
|
_renderDevices: function() {
|
||||||
|
if (!UserSettingsStore.isFeatureEnabled("e2e_encryption")) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var devices = this.state.devices;
|
var devices = this.state.devices;
|
||||||
var MemberDeviceInfo = sdk.getComponent('rooms.MemberDeviceInfo');
|
var MemberDeviceInfo = sdk.getComponent('rooms.MemberDeviceInfo');
|
||||||
var Spinner = sdk.getComponent("elements.Spinner");
|
var Spinner = sdk.getComponent("elements.Spinner");
|
||||||
|
|
Loading…
Reference in a new issue