Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3be36ac

Browse files
Hide screen-sharing button in Element Call on desktop (#9423)
1 parent 46e1ac6 commit 3be36ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/models/Call.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import { ElementWidgetActions } from "../stores/widgets/ElementWidgetActions";
4141
import WidgetStore from "../stores/WidgetStore";
4242
import { WidgetMessagingStore, WidgetMessagingStoreEvent } from "../stores/widgets/WidgetMessagingStore";
4343
import ActiveWidgetStore, { ActiveWidgetStoreEvent } from "../stores/ActiveWidgetStore";
44+
import PlatformPeg from "../PlatformPeg";
4445

4546
const TIMEOUT_MS = 16000;
4647

@@ -635,6 +636,10 @@ export class ElementCall extends Call {
635636
deviceId: client.getDeviceId(),
636637
roomId: groupCall.getRoomId()!,
637638
});
639+
// Currently, the screen-sharing support is the same is it is for Jitsi
640+
if (!PlatformPeg.get().supportsJitsiScreensharing()) {
641+
params.append("hideScreensharing", "");
642+
}
638643
url.hash = `#?${params.toString()}`;
639644

640645
// To use Element Call without touching room state, we create a virtual

0 commit comments

Comments
 (0)