mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Use the 'muted' icon when the mic is muted during a call
This commit is contained in:
parent
3b245f0131
commit
0beafeddb9
1 changed files with 5 additions and 1 deletions
|
@ -241,9 +241,13 @@ module.exports = React.createClass({
|
|||
<div className="mx_RoomHeader_button mx_RoomHeader_video" onClick={activeCall && activeCall.type === "video" ? this.onMuteVideoClick : this.onVideoClick}>
|
||||
<img src="img/video.png" title="Video call" alt="Video call" width="32" height="32" style={{ 'marginTop': '-8px' }}/>
|
||||
</div>;
|
||||
var img = "img/voip.png";
|
||||
if (activeCall.isMicrophoneMuted()) {
|
||||
img = "img/voip-mute.png";
|
||||
}
|
||||
voice_button =
|
||||
<div className="mx_RoomHeader_button mx_RoomHeader_voice" onClick={activeCall ? this.onMuteAudioClick : this.onVoiceClick}>
|
||||
<img src="img/voip.png" title="VoIP call" alt="VoIP call" width="32" height="32" style={{ 'marginTop': '-8px' }}/>
|
||||
<img src={img} title="VoIP call" alt="VoIP call" width="32" height="32" style={{ 'marginTop': '-8px' }}/>
|
||||
</div>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue