Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3838 from matrix-org/dbkr/padlocks_behind_labs_flag
Browse files Browse the repository at this point in the history
Room padlock decorations only if cross-signing is enabled
  • Loading branch information
dbkr authored Jan 13, 2020
2 parents 389e119 + d53016e commit 19777cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/views/rooms/RoomTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }
Expand Down

0 comments on commit 19777cf

Please sign in to comment.