mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-10 07:05:14 +00:00
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
This commit is contained in:
commit
8ce46d3de8
1 changed files with 2 additions and 2 deletions
|
@ -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: "" });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue