mirror of https://github.com/vector-im/riot-web
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-Desktoppull/27323/head
commit
8ce46d3de8
|
@ -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 New Issue