diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 3793036a22..452bac2b99 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -608,6 +608,16 @@ export default class CallView extends React.Component { ; } + let sidebar; + if (!isOnHold && !transfereeCall && !this.props.pipMode) { + sidebar = ( + + ); + } + // This is a bit messy. I can't see a reason to have two onHold/transfer screens if (isOnHold || transfereeCall) { if (this.props.call.type === CallType.Video) { @@ -675,10 +685,7 @@ export default class CallView extends React.Component { className={classes} onMouseMove={this.onMouseMove} > - + { sidebar }
{ ref={this.contentRef} onMouseMove={this.onMouseMove} > - + { sidebar }