From 57fabafb162eaae99c5c64b879a21f3d2ad4357c Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 23 Nov 2022 11:52:02 +0000 Subject: [PATCH] Fix screensharing in 1:1 calls Interface got changed in the group call branch and the modals don't have enough typing to catch it. Fixes https://github.com/vector-im/element-web/issues/23808 --- src/components/views/voip/LegacyCallView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/voip/LegacyCallView.tsx b/src/components/views/voip/LegacyCallView.tsx index 6d37d0339c6..cabc127ba50 100644 --- a/src/components/views/voip/LegacyCallView.tsx +++ b/src/components/views/voip/LegacyCallView.tsx @@ -297,7 +297,9 @@ export default class LegacyCallView extends React.Component { const [source] = await finished; if (!source) return; - isScreensharing = await this.props.call.setScreensharingEnabled(true, source); + isScreensharing = await this.props.call.setScreensharingEnabled(true, { + desktopCapturerSourceId: source, + }); } else { isScreensharing = await this.props.call.setScreensharingEnabled(true); }