mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Handle no selected screen when screen-sharing (#7018)
This commit is contained in:
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…
x
Reference in New Issue
Block a user