From 690905d01e4c3f79359d859596a205ae7b24690d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 20 Jul 2021 16:51:47 +0200 Subject: [PATCH] Show sidebar button only when screen-sharing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallView.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 47683b4657..532eed9f86 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -524,9 +524,11 @@ export default class CallView extends React.Component { // we can hide the button too let sidebarButton; if ( - (this.props.call.type === CallType.Video || - this.state.primaryFeed?.purpose === SDPStreamMetadataPurpose.Screenshare) && - !this.props.pipMode + !this.props.pipMode && + ( + this.state.primaryFeed?.purpose === SDPStreamMetadataPurpose.Screenshare || + this.props.call.isScreensharing() + ) ) { sidebarButton = (