Skip to content

Commit

Permalink
Hide screen-sharing button in Element Call on desktop (#9423)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner committed Oct 14, 2022
1 parent 46e1ac6 commit 3be36ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/models/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3be36ac

Please sign in to comment.