diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 5a170b44d5..467196a68a 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -494,6 +494,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 = {}; @@ -512,6 +513,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 : ( @@ -527,7 +531,7 @@ export default class CallView extends React.Component { - + {localVideoFeed} {onHoldContent} {callControls}
;