From 3be36acf14b615cbee41db8271a8eb8919c3ce58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 14 Oct 2022 18:58:57 +0200 Subject: [PATCH] Hide screen-sharing button in Element Call on desktop (#9423) --- src/models/Call.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/models/Call.ts b/src/models/Call.ts index 6a50fe90d8..ebf683781f 100644 --- a/src/models/Call.ts +++ b/src/models/Call.ts @@ -41,6 +41,7 @@ import { ElementWidgetActions } from "../stores/widgets/ElementWidgetActions"; import WidgetStore from "../stores/WidgetStore"; import { WidgetMessagingStore, WidgetMessagingStoreEvent } from "../stores/widgets/WidgetMessagingStore"; import ActiveWidgetStore, { ActiveWidgetStoreEvent } from "../stores/ActiveWidgetStore"; +import PlatformPeg from "../PlatformPeg"; const TIMEOUT_MS = 16000; @@ -635,6 +636,10 @@ export class ElementCall extends Call { deviceId: client.getDeviceId(), roomId: groupCall.getRoomId()!, }); + // Currently, the screen-sharing support is the same is it is for Jitsi + if (!PlatformPeg.get().supportsJitsiScreensharing()) { + params.append("hideScreensharing", ""); + } url.hash = `#?${params.toString()}`; // To use Element Call without touching room state, we create a virtual