diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 6748728278..260de4d68a 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -437,6 +437,7 @@ export default class CallView extends React.Component { } if (this.props.call.type === CallType.Video) { + let localVideoFeed = null; let onHoldContent = null; let onHoldBackground = null; const backgroundStyle: CSSProperties = {}; @@ -455,6 +456,9 @@ export default class CallView extends React.Component { backgroundStyle.backgroundImage = 'url(' + backgroundAvatarUrl + ')'; onHoldBackground =
; } + if (!this.state.vidMuted) { + localVideoFeed = ; + } // if we're fullscreen, we don't want to set a maxHeight on the video element. const maxVideoHeight = getFullScreenElement() ? null : ( @@ -470,7 +474,7 @@ export default class CallView extends React.Component { - + {localVideoFeed} {onHoldContent} {callControls}
;