diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 11e1bb1dfb..fa21a322db 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -431,7 +431,15 @@ export default class CallView extends React.Component { } private onToggleSidebar = () => { - this.setState({ sidebarShown: !this.state.sidebarShown }); + let vidMuted = this.state.vidMuted; + if (this.state.screensharing) { + vidMuted = this.state.sidebarShown; + this.props.call.setLocalVideoMuted(vidMuted); + } + this.setState({ + vidMuted: vidMuted, + sidebarShown: !this.state.sidebarShown, + }); } private renderCallControls(): JSX.Element {