Skip to content

Commit

Permalink
ElectronPlatform.tsx aktualisieren
Browse files Browse the repository at this point in the history
Co-authored-by: Robin <robin@robin.town>
  • Loading branch information
Stephan Raab and robintown authored Apr 9, 2024
1 parent b64ac05 commit 1cf0842
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vector/platform/ElectronPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
window.electron.on("openDesktopCapturerSourcePicker", () => {
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
finished.then(([source]) => {
if (!source)
source = {
id: "",
name: "",
thumbnailURL: ""
};
this.ipc.call("callDisplayMediaCallback", source);
this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
});
});

Expand Down

0 comments on commit 1cf0842

Please sign in to comment.