Show sidebar button only when screen-sharing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

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