Enable screenshare in all video calls

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-05-08 10:04:26 +02:00
parent 5b2f941ce2
commit 4c9d9dd214
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -501,10 +501,15 @@ export default class CallView extends React.Component<IProps, IState> {
onClick={this.onVidMuteClick}
/> : null;
const screensharingButton = this.props.call.opponentSupportsSDPStreamMetadata() ? <AccessibleButton
className={screensharingClasses}
onClick={this.onScreenshareClick}
/> : null;
let screensharingButton;
if (this.props.call.opponentSupportsSDPStreamMetadata() || this.props.call.type === CallType.Video) {
screensharingButton = (
<AccessibleButton
className={screensharingClasses}
onClick={this.onScreenshareClick}
/>
);
}
// The dial pad & 'more' button actions are only relevant in a connected call
// When not connected, we have to put something there to make the flexbox alignment correct