From f617fb7bbec66ec2d474f1d4c7e8ba7efa3f8440 Mon Sep 17 00:00:00 2001 From: Zoe Date: Tue, 14 Jan 2020 10:31:01 +0000 Subject: [PATCH] Place RoomHeader privacy padlocks behind the crosssigning feature flag --- src/components/views/rooms/RoomHeader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 76c85ea54b..6807cc98a8 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -163,6 +163,9 @@ module.exports = createReactClass({ const joinRule = joinRules && joinRules.getContent().join_rule; const joinRuleClass = classNames("mx_RoomHeader_PrivateIcon", {"mx_RoomHeader_isPrivate": joinRule === "invite"}); + const privateIcon = SettingsStore.isFeatureEnabled("feature_cross_signing") ? +
: + undefined; if (this.props.onCancelClick) { cancelButton = ; @@ -308,7 +311,7 @@ module.exports = createReactClass({
{ roomAvatar }
{ e2eIcon } -
+ { privateIcon } { name } { topicElement } { cancelButton }