mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-30 06:21:09 +08:00
Don't show screensharing dialog on web
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
1a4859ede8
commit
0defc4b14b
@ -277,9 +277,13 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||||||
if (this.state.screensharing) {
|
if (this.state.screensharing) {
|
||||||
isScreensharing = await this.props.call.setScreensharingEnabled(false);
|
isScreensharing = await this.props.call.setScreensharingEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
if (window.electron?.getDesktopCapturerSources) {
|
||||||
const [source] = await finished;
|
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
||||||
isScreensharing = await this.props.call.setScreensharingEnabled(true, source);
|
const [source] = await finished;
|
||||||
|
isScreensharing = await this.props.call.setScreensharingEnabled(true, source);
|
||||||
|
} else {
|
||||||
|
isScreensharing = await this.props.call.setScreensharingEnabled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
Loading…
Reference in New Issue
Block a user