Fix share cancel button in element-desktop

This commit is contained in:
Stephan Raab 2024-04-08 22:17:24 +02:00
parent 364ad021e4
commit 2f72796ae7

View file

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