Merge pull request #3838 from matrix-org/dbkr/padlocks_behind_labs_flag

Room padlock decorations only if cross-signing is enabled
This commit is contained in:
David Baker 2020-01-13 19:27:50 +00:00 committed by GitHub
commit 19777cfafc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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> return <React.Fragment>
<AccessibleButton <AccessibleButton
tabIndex="0" tabIndex="0"
@ -444,7 +449,7 @@ module.exports = createReactClass({
{ dmIndicator } { dmIndicator }
</div> </div>
</div> </div>
<div className="mx_RoomTile_PrivateIcon" /> { privateIcon }
<div className="mx_RoomTile_nameContainer"> <div className="mx_RoomTile_nameContainer">
<div className="mx_RoomTile_labelContainer"> <div className="mx_RoomTile_labelContainer">
{ label } { label }