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

Commit

Permalink
Fix screensharing in 1:1 calls
Browse files Browse the repository at this point in the history
Interface got changed in the group call branch and the modals don't
have enough typing to catch it.

Fixes element-hq/element-web#23808
  • Loading branch information
dbkr committed Nov 23, 2022
1 parent 569a364 commit 57fabaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/views/voip/LegacyCallView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ export default class LegacyCallView extends React.Component<IProps, IState> {
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);
}
Expand Down

0 comments on commit 57fabaf

Please sign in to comment.