ElectronPlatform.tsx aktualisieren

Co-authored-by: Robin <robin@robin.town>
pull/27301/head
Stephan Raab 2024-04-09 20:05:03 +02:00 committed by GitHub
parent b64ac0593e
commit 1cf08423ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 7 deletions

View File

@ -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: "" });
});
});