Hide screen-sharing button in Element Call on desktop (#9423)
This commit is contained in:
parent
46e1ac6310
commit
3be36acf14
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,7 @@ import { ElementWidgetActions } from "../stores/widgets/ElementWidgetActions";
|
||||||
import WidgetStore from "../stores/WidgetStore";
|
import WidgetStore from "../stores/WidgetStore";
|
||||||
import { WidgetMessagingStore, WidgetMessagingStoreEvent } from "../stores/widgets/WidgetMessagingStore";
|
import { WidgetMessagingStore, WidgetMessagingStoreEvent } from "../stores/widgets/WidgetMessagingStore";
|
||||||
import ActiveWidgetStore, { ActiveWidgetStoreEvent } from "../stores/ActiveWidgetStore";
|
import ActiveWidgetStore, { ActiveWidgetStoreEvent } from "../stores/ActiveWidgetStore";
|
||||||
|
import PlatformPeg from "../PlatformPeg";
|
||||||
|
|
||||||
const TIMEOUT_MS = 16000;
|
const TIMEOUT_MS = 16000;
|
||||||
|
|
||||||
|
@ -635,6 +636,10 @@ export class ElementCall extends Call {
|
||||||
deviceId: client.getDeviceId(),
|
deviceId: client.getDeviceId(),
|
||||||
roomId: groupCall.getRoomId()!,
|
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()}`;
|
url.hash = `#?${params.toString()}`;
|
||||||
|
|
||||||
// To use Element Call without touching room state, we create a virtual
|
// To use Element Call without touching room state, we create a virtual
|
||||||
|
|
Loading…
Reference in a new issue