mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Show an open padlock for unencrypted rooms
Also, add a tooltip, and enlarge the img to 12px wide, because the open padlock looked silly at 10px and they both look fine at 12px
This commit is contained in:
parent
ec999f6fa1
commit
a3d4ed5aee
@ -222,13 +222,22 @@ export default class MessageComposer extends React.Component {
|
||||
</div>
|
||||
);
|
||||
|
||||
let e2eimg, e2etitle;
|
||||
|
||||
if (MatrixClientPeg.get().isRoomEncrypted(this.props.room.roomId)) {
|
||||
// FIXME: show a /!\ if there are untrusted devices in the room...
|
||||
controls.push(
|
||||
<img key="e2eIcon" className="mx_MessageComposer_e2eIcon" src="img/e2e-verified.svg" width="10" height="12" alt="Encrypted room"/>
|
||||
);
|
||||
e2eimg = 'img/e2e-verified.svg';
|
||||
e2etitle = 'Encrypted room';
|
||||
} else {
|
||||
e2eimg = 'img/e2e-unencrypted.svg';
|
||||
e2etitle = 'Unencrypted room';
|
||||
}
|
||||
|
||||
controls.push(
|
||||
<img key="e2eIcon" className="mx_MessageComposer_e2eIcon" src={e2eimg} width="12" height="12"
|
||||
alt={e2etitle} title={e2etitle}
|
||||
/>
|
||||
);
|
||||
var callButton, videoCallButton, hangupButton;
|
||||
if (this.props.callState && this.props.callState !== 'ended') {
|
||||
hangupButton =
|
||||
|
Loading…
Reference in New Issue
Block a user