Skip to content

Commit

Permalink
Merge pull request #27301 from gumara-dev/fix_branch
Browse files Browse the repository at this point in the history
Fix: 1:1 call - screen sharing no longer works after pressing the cancel button in Element-Desktop
  • Loading branch information
robintown authored Apr 9, 2024
2 parents f64759e + 2cad731 commit 8ce46d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vector/platform/ElectronPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
window.electron.on("openDesktopCapturerSourcePicker", () => {
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
finished.then(([source]) => {
if (!source) return;
this.ipc.call("callDisplayMediaCallback", source);
// getDisplayMedia promise does not return if no dummy is passed here as source
this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
});
});

Expand Down

0 comments on commit 8ce46d3

Please sign in to comment.