Merge pull request #6782 from SimonBrandner/fix/screensharing-dialog
Don't show screensharing dialog on webpull/21833/head
						commit
						34ce61862d
					
				|  | @ -277,9 +277,13 @@ export default class CallView extends React.Component<IProps, IState> { | |||
|         if (this.state.screensharing) { | ||||
|             isScreensharing = await this.props.call.setScreensharingEnabled(false); | ||||
|         } else { | ||||
|             const { finished } = Modal.createDialog(DesktopCapturerSourcePicker); | ||||
|             const [source] = await finished; | ||||
|             isScreensharing = await this.props.call.setScreensharingEnabled(true, source); | ||||
|             if (window.electron?.getDesktopCapturerSources) { | ||||
|                 const { finished } = Modal.createDialog(DesktopCapturerSourcePicker); | ||||
|                 const [source] = await finished; | ||||
|                 isScreensharing = await this.props.call.setScreensharingEnabled(true, source); | ||||
|             } else { | ||||
|                 isScreensharing = await this.props.call.setScreensharingEnabled(true); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         this.setState({ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Travis Ralston
						Travis Ralston