From 0cdf3d0898cabf28f04b3a77bdc2b54661371114 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 1 Feb 2019 13:40:19 +0100 Subject: [PATCH] add icon to room header --- src/components/views/rooms/RoomHeader.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 3cdb9237be..dbf06fe547 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -33,6 +33,7 @@ import ManageIntegsButton from '../elements/ManageIntegsButton'; import {CancelButton} from './SimpleRoomHeader'; import SettingsStore from "../../../settings/SettingsStore"; import RoomHeaderButtons from '../right_panel/RoomHeaderButtons'; +import E2EIcon from './E2EIcon'; linkifyMatrix(linkify); @@ -52,6 +53,7 @@ module.exports = React.createClass({ onSearchClick: PropTypes.func, onLeaveClick: PropTypes.func, onCancelClick: PropTypes.func, + e2eStatus: PropTypes.string, }, getDefaultProps: function() { @@ -237,6 +239,8 @@ module.exports = React.createClass({ ); } + let e2eIcon = this.props.e2eStatus ? : undefined; + if (this.props.onCancelClick) { cancelButton = ; } @@ -413,6 +417,7 @@ module.exports = React.createClass({
{ roomAvatar }
+ { e2eIcon } { name } { topicElement } { spinner }