You are muted message fix when hiding controls, fixes #267

auto_join_3.3
Håvar Aambø Fosstveit 2020-05-02 23:09:23 +02:00
parent c76c6d548a
commit 272cef52b4
1 changed files with 12 additions and 12 deletions

View File

@ -116,7 +116,8 @@ const styles = (theme) =>
fontSize : '2vs', fontSize : '2vs',
backgroundColor : 'rgba(255, 0, 0, 0.5)', backgroundColor : 'rgba(255, 0, 0, 0.5)',
margin : '4px', margin : '4px',
padding : '15px', padding : theme.spacing(2),
zIndex : 31,
borderRadius : '20px', borderRadius : '20px',
textAlign : 'center', textAlign : 'center',
opacity : 0, opacity : 0,
@ -298,6 +299,16 @@ const Me = (props) =>
style={spacingStyle} style={spacingStyle}
> >
<div className={classes.viewContainer} style={style}> <div className={classes.viewContainer} style={style}>
<div className={classnames(
classes.ptt,
(micState === 'muted' && me.isSpeaking) ? 'enabled' : null
)}
>
<FormattedMessage
id='me.mutedPTT'
defaultMessage='You are muted, hold down SPACE-BAR to talk'
/>
</div>
<div <div
className={classnames( className={classnames(
classes.controls, classes.controls,
@ -331,17 +342,6 @@ const Me = (props) =>
/> />
</p> </p>
<div className={classnames(
classes.ptt,
(micState === 'muted' && me.isSpeaking) ? 'enabled' : null
)}
>
<FormattedMessage
id='me.mutedPTT'
defaultMessage='You are muted, hold down SPACE-BAR to talk'
/>
</div>
<React.Fragment> <React.Fragment>
<Tooltip title={micTip} placement='left'> <Tooltip title={micTip} placement='left'>
<div> <div>