Show sidebar button only when screen-sharing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
15406eaff2
commit
690905d01e
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue