Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 75c7daa

Browse files
Handle no selected screen when screen-sharing (#7018)
1 parent 1256b1e commit 75c7daa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/views/voip/CallView.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ export default class CallView extends React.Component<IProps, IState> {
278278
if (window.electron?.getDesktopCapturerSources) {
279279
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
280280
const [source] = await finished;
281+
if (!source) return;
282+
281283
isScreensharing = await this.props.call.setScreensharingEnabled(true, source);
282284
} else {
283285
isScreensharing = await this.props.call.setScreensharingEnabled(true);

0 commit comments

Comments
 (0)