fix(voice): send screen shares at the quality the user picked (#2840)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-19 16:46:22 +02:00
1 parent 2119e10ed5
commit 9027cbdf3e
102 files changed
+12454 -20847

No files matched your search

@@ -32,7 +32,6 @@ import {
type OfferedScreenShareResolution,
} from '@app/features/voice/components/StreamSettingsMenuContentStateMachine';
import ActiveScreenShareSource from '@app/features/voice/state/ActiveScreenShareSource';
import ScreenShareDelivery from '@app/features/voice/state/ScreenShareDelivery';
import type VoiceSettings from '@app/features/voice/state/VoiceSettings';
import type {CameraResolution} from '@app/features/voice/state/VoiceSettings';
import {
@@ -43,7 +42,6 @@ import {
import {buildSettingsDeviceOptions} from '@app/features/voice/utils/SettingsDeviceOptions';
import {hasHigherVideoQuality} from '@app/features/voice/utils/VideoQualityEntitlement';
import {resolveEffectiveDeviceId} from '@app/features/voice/utils/VoiceDeviceManager';
import {formatScreenShareDeliveryStatus} from '@app/features/voice/utils/VoiceMessageDescriptors';
import type {I18n} from '@lingui/core';
import {msg} from '@lingui/core/macro';
import {Trans, useLingui} from '@lingui/react/macro';
@@ -196,7 +194,6 @@ export const VideoTab: React.FC<VideoTabProps> = observer(
value,
label: i18n._(FPS_DESCRIPTOR, {frameRate: value}),
}));
const deliveryStatus = formatScreenShareDeliveryStatus(i18n, ScreenShareDelivery.plan, ScreenShareDelivery.notice);
const handleCameraPreview = async () => {
const granted = await requestPermission();
if (granted) {
@@ -395,16 +392,6 @@ export const VideoTab: React.FC<VideoTabProps> = observer(
})}
</div>
)}
{deliveryStatus.sending !== null && (
<div className={styles.frameRateNote} data-flx="user.video-tab.sending-note">
{deliveryStatus.sending}
</div>
)}
{deliveryStatus.notice !== null && (
<div className={styles.frameRateNote} data-flx="user.video-tab.delivery-notice">
{deliveryStatus.notice}
</div>
)}
</div>
<div className={styles.actionRow} data-flx="user.video-tab.advanced-video-settings-section">
<span className={styles.actionLabel} data-flx="user.video-tab.advanced-video-settings-label">