diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index fdb46bb0eb..9063fc945d 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -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: "" }); }); });