Fix not showing mute button when producer doesn't exist

This commit is contained in:
Roman Drozd 2022-02-03 03:01:44 +01:00
parent 2f0d925e8b
commit abb0bccfe9

View file

@ -469,6 +469,7 @@ const Peer = (props) =>
}}
>
{micConsumer &&
<Tooltip
title={intl.formatMessage({
id : 'device.muteAudio',
@ -485,7 +486,6 @@ const Peer = (props) =>
// className={classes.fab}
style={{ ...controls.item.style }}
className={classnames('fab')}
disabled={!micConsumer}
color={micEnabled ? 'default' : 'secondary'}
size={controls.item.size}
onClick={() =>
@ -503,6 +503,7 @@ const Peer = (props) =>
</Fab>
</div>
</Tooltip>
}
{ browser.platform !== 'mobile' &&
videoVisible && windowConsumer !== webcamConsumer.id &&