mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Handle no selected screen when screen-sharing (#7018)
This commit is contained in:
parent
1256b1ef2a
commit
75c7daa2c9
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue