|
|
@ -4,6 +4,7 @@ import { makeStyles } from '@material-ui/core/styles'; |
|
|
|
import React from 'react'; |
|
|
|
import React from 'react'; |
|
|
|
import { useSelector } from 'react-redux'; |
|
|
|
import { useSelector } from 'react-redux'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { isDisplayNameVisible } from '../../../base/config/functions.any'; |
|
|
|
import { getLocalParticipant } from '../../../base/participants'; |
|
|
|
import { getLocalParticipant } from '../../../base/participants'; |
|
|
|
import { withPixelLineHeight } from '../../../base/styles/functions.web'; |
|
|
|
import { withPixelLineHeight } from '../../../base/styles/functions.web'; |
|
|
|
import { getLargeVideoParticipant } from '../../../large-video/functions'; |
|
|
|
import { getLargeVideoParticipant } from '../../../large-video/functions'; |
|
|
@ -44,8 +45,9 @@ const DominantSpeakerName = () => { |
|
|
|
|
|
|
|
|
|
|
|
const isTileView = useSelector(isLayoutTileView); |
|
|
|
const isTileView = useSelector(isLayoutTileView); |
|
|
|
const toolboxVisible = useSelector(isToolboxVisible); |
|
|
|
const toolboxVisible = useSelector(isToolboxVisible); |
|
|
|
|
|
|
|
const showDisplayName = useSelector(isDisplayNameVisible); |
|
|
|
|
|
|
|
|
|
|
|
if (nameToDisplay && selectedId !== localId && !isTileView) { |
|
|
|
if (showDisplayName && nameToDisplay && selectedId !== localId && !isTileView) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
className = { `${classes.badgeContainer}${toolboxVisible ? '' : ` ${classes.containerElevated}`}` }> |
|
|
|
className = { `${classes.badgeContainer}${toolboxVisible ? '' : ` ${classes.containerElevated}`}` }> |
|
|
|