mirror of https://github.com/vector-im/riot-web
Show sidebar button only when screen-sharing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
15406eaff2
commit
690905d01e
|
@ -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 New Issue