diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 11206602c7..673f59190e 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -278,6 +278,8 @@ export default class CallView extends React.Component { 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);