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

Commit 55d3522

Browse files
dbkrrobintown
andauthored
Fix screensharing in 1:1 calls (#9612)
Co-authored-by: Robin Townsend <[email protected]>
1 parent 6b3098d commit 55d3522

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/views/voip/LegacyCallView.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,13 @@ export default class LegacyCallView extends React.Component<IProps, IState> {
293293
isScreensharing = await this.props.call.setScreensharingEnabled(false);
294294
} else {
295295
if (PlatformPeg.get().supportsDesktopCapturer()) {
296-
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
296+
const { finished } = Modal.createDialog<[string]>(DesktopCapturerSourcePicker);
297297
const [source] = await finished;
298298
if (!source) return;
299299

300-
isScreensharing = await this.props.call.setScreensharingEnabled(true, source);
300+
isScreensharing = await this.props.call.setScreensharingEnabled(true, {
301+
desktopCapturerSourceId: source,
302+
});
301303
} else {
302304
isScreensharing = await this.props.call.setScreensharingEnabled(true);
303305
}

0 commit comments

Comments
 (0)