mirror of https://github.com/vector-im/riot-web
Merge pull request #3838 from matrix-org/dbkr/padlocks_behind_labs_flag
Room padlock decorations only if cross-signing is enabledpull/21833/head
commit
19777cfafc
|
@ -426,6 +426,11 @@ module.exports = createReactClass({
|
|||
);
|
||||
}
|
||||
|
||||
let privateIcon = null;
|
||||
if (SettingsStore.isFeatureEnabled("feature_cross_signing")) {
|
||||
privateIcon = <div className="mx_RoomTile_PrivateIcon" />;
|
||||
}
|
||||
|
||||
return <React.Fragment>
|
||||
<AccessibleButton
|
||||
tabIndex="0"
|
||||
|
@ -444,7 +449,7 @@ module.exports = createReactClass({
|
|||
{ dmIndicator }
|
||||
</div>
|
||||
</div>
|
||||
<div className="mx_RoomTile_PrivateIcon" />
|
||||
{ privateIcon }
|
||||
<div className="mx_RoomTile_nameContainer">
|
||||
<div className="mx_RoomTile_labelContainer">
|
||||
{ label }
|
||||
|
|
Loading…
Reference in New Issue