Skip to content

Commit

Permalink
Fix share cancel button in element-desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Raab authored and Stephan Raab committed Apr 8, 2024
1 parent 364ad02 commit 2f72796
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vector/platform/ElectronPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ export default class ElectronPlatform extends VectorBasePlatform {
window.electron.on("openDesktopCapturerSourcePicker", () => {
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
finished.then(([source]) => {
if (!source) return;
if (!source)
source = {
id: "",
name: "",
thumbnailURL: ""
};
this.ipc.call("callDisplayMediaCallback", source);
});
});
Expand Down

0 comments on commit 2f72796

Please sign in to comment.