Handle no selected screen when screen-sharing (#7018)
parent
1256b1ef2a
commit
75c7daa2c9
|
@ -278,6 +278,8 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
if (window.electron?.getDesktopCapturerSources) {
|
||||
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
|
||||
const [source] = await finished;
|
||||
if (!source) return;
|
||||
|
||||
isScreensharing = await this.props.call.setScreensharingEnabled(true, source);
|
||||
} else {
|
||||
isScreensharing = await this.props.call.setScreensharingEnabled(true);
|
||||
|
|
Loading…
Reference in New Issue