Show sidebar button only when screen-sharing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-20 16:51:47 +02:00
parent 15406eaff2
commit 690905d01e
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 5 additions and 3 deletions

View File

@ -524,9 +524,11 @@ export default class CallView extends React.Component<IProps, IState> {
// 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 = (
<AccessibleButton