diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js
index e78cf0b13e..ee9c49d52a 100644
--- a/src/components/views/rooms/MessageComposer.js
+++ b/src/components/views/rooms/MessageComposer.js
@@ -222,13 +222,22 @@ export default class MessageComposer extends React.Component {
);
+ let e2eimg, e2etitle;
+
if (MatrixClientPeg.get().isRoomEncrypted(this.props.room.roomId)) {
// FIXME: show a /!\ if there are untrusted devices in the room...
- controls.push(
-
- );
+ e2eimg = 'img/e2e-verified.svg';
+ e2etitle = 'Encrypted room';
+ } else {
+ e2eimg = 'img/e2e-unencrypted.svg';
+ e2etitle = 'Unencrypted room';
}
+ controls.push(
+
+ );
var callButton, videoCallButton, hangupButton;
if (this.props.callState && this.props.callState !== 'ended') {
hangupButton =