Skip to content

Commit

Permalink
add micEnabled=false to unmuteAlert
Browse files Browse the repository at this point in the history
  • Loading branch information
YotaYota committed Oct 18, 2024
1 parent 4080afd commit c7c9157
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/stateindicators/MeStateIndicators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ import { useAppSelector } from '../../store/hooks';

const MeStateIndicators = (): JSX.Element => {
const audioMuted = useAppSelector((state) => state.me.audioMuted);
const micEnabled = useAppSelector((state) => state.me.micEnabled);
const raisedHand = useAppSelector((state) => state.me.raisedHand);

const muted = (micEnabled && audioMuted) || !micEnabled;

return (
<>
{ audioMuted && <MicOff color='error' fontSize='small' /> }
{ muted && <MicOff color='error' fontSize='small' /> }
{ raisedHand && <RaiseHand fontSize='small' /> }
</>
);
Expand Down

0 comments on commit c7c9157

Please sign in to comment.