diff --git a/ts/RemoteConfig.ts b/ts/RemoteConfig.ts index 4f75b6f98c..526f4b27eb 100644 --- a/ts/RemoteConfig.ts +++ b/ts/RemoteConfig.ts @@ -16,7 +16,6 @@ import { getCountryCode } from './types/PhoneNumber'; export type ConfigKeyType = | 'cds.disableCompatibilityMode' - | 'desktop.calling.sendScreenShare1800' | 'desktop.cdsi.returnAcisWithoutUaks' | 'desktop.clientExpiration' | 'desktop.groupMultiTypingIndicators' diff --git a/ts/services/calling.ts b/ts/services/calling.ts index 9c8b643714..98c01475ab 100644 --- a/ts/services/calling.ts +++ b/ts/services/calling.ts @@ -40,7 +40,6 @@ import { import { uniqBy, noop } from 'lodash'; import Long from 'long'; -import * as RemoteConfig from '../RemoteConfig'; import type { ActionsType as CallingReduxActionsType, GroupCallParticipantInfoType, @@ -1431,20 +1430,13 @@ export class CallingClass { this.videoCapturer.disable(); if (source) { this.hadLocalVideoBeforePresenting = hasLocalVideo; - const options = { + this.videoCapturer.enableCaptureAndSend(call, { // 15fps is much nicer but takes up a lot more CPU. maxFramerate: 5, - maxHeight: 1080, - maxWidth: 1920, + maxHeight: 1800, + maxWidth: 2880, screenShareSourceId: source.id, - }; - - if (RemoteConfig.isEnabled('desktop.calling.sendScreenShare1800')) { - options.maxWidth = 2880; - options.maxHeight = 1800; - } - - this.videoCapturer.enableCaptureAndSend(call, options); + }); this.setOutgoingVideo(conversationId, true); } else { this.setOutgoingVideo(