From 42416021ad7f5b548006c565f15d44ec7ef9f022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 11 Feb 2022 11:38:35 +0100 Subject: [PATCH] Switch to IPC channel for `getDesktopCapturerSources` (#21042) --- src/vector/platform/ElectronPlatform.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 797e78c40c..23bf7982eb 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -550,6 +550,14 @@ export default class ElectronPlatform extends VectorBasePlatform { return this.ipcCall('getSpellCheckLanguages'); } + async getDesktopCapturerSources(options: GetSourcesOptions): Promise> { + return this.ipcCall('getDesktopCapturerSources', options); + } + + supportsDesktopCapturer(): boolean { + return true; + } + async getAvailableSpellCheckLanguages(): Promise { return this.ipcCall('getAvailableSpellCheckLanguages'); }