diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 532eed9f86..32a5ff0a85 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -337,7 +337,11 @@ export default class CallView extends React.Component { return source; }, ); - this.setState({ screensharing: isScreensharing }); + + this.setState({ + sidebarShown: true, + screensharing: isScreensharing, + }); }; private onMoreClick = (): void => { @@ -434,13 +438,7 @@ export default class CallView extends React.Component { }; private onToggleSidebar = (): void => { - 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, }); };