mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-17 10:51:58 +03:00
Enable screenshare in all video calls
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
5b2f941ce2
commit
4c9d9dd214
1 changed files with 9 additions and 4 deletions
|
@ -501,10 +501,15 @@ export default class CallView extends React.Component<IProps, IState> {
|
||||||
onClick={this.onVidMuteClick}
|
onClick={this.onVidMuteClick}
|
||||||
/> : null;
|
/> : null;
|
||||||
|
|
||||||
const screensharingButton = this.props.call.opponentSupportsSDPStreamMetadata() ? <AccessibleButton
|
let screensharingButton;
|
||||||
className={screensharingClasses}
|
if (this.props.call.opponentSupportsSDPStreamMetadata() || this.props.call.type === CallType.Video) {
|
||||||
onClick={this.onScreenshareClick}
|
screensharingButton = (
|
||||||
/> : null;
|
<AccessibleButton
|
||||||
|
className={screensharingClasses}
|
||||||
|
onClick={this.onScreenshareClick}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// The dial pad & 'more' button actions are only relevant in a connected call
|
// 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
|
// When not connected, we have to put something there to make the flexbox alignment correct
|
||||||
|
|
Loading…
Reference in a new issue