Fix share cancel button in element-desktop

pull/27301/head
Stephan Raab 2024-04-08 22:17:24 +02:00
parent 364ad021e4
commit 2f72796ae7
1 changed files with 6 additions and 1 deletions

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