Merge pull request #27301 from gumara-dev/fix_branch

Fix: 1:1 call - screen sharing no longer works after pressing the cancel button in Element-Desktop
pull/27323/head
Robin 2024-04-09 18:43:57 +00:00 committed by GitHub
commit 8ce46d3de8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
window.electron.on("openDesktopCapturerSourcePicker", () => { window.electron.on("openDesktopCapturerSourcePicker", () => {
const { finished } = Modal.createDialog(DesktopCapturerSourcePicker); const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
finished.then(([source]) => { finished.then(([source]) => {
if (!source) return; // getDisplayMedia promise does not return if no dummy is passed here as source
this.ipc.call("callDisplayMediaCallback", source); this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
}); });
}); });