Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): show the voice connection id only when enabled

Hampus7478d5b1288e
diff --git a/fluxer_app/src/features/voice/components/bottomsheets/DirectCallLobbyBottomSheet.tsx b/fluxer_app/src/features/voice/components/bottomsheets/DirectCallLobbyBottomSheet.tsx
index 3135a51eb..d7c82c6b6 100644
--- a/fluxer_app/src/features/voice/components/bottomsheets/DirectCallLobbyBottomSheet.tsx
+++ b/fluxer_app/src/features/voice/components/bottomsheets/DirectCallLobbyBottomSheet.tsx
@@ -28,6 +28,7 @@ import MediaEngine, {useMediaEngineVersion} from '@app/features/voice/engine/Med
import {VOICE_CAMERA_USER_LIMIT_REACHED_DESCRIPTOR} from '@app/features/voice/engine/media_engine_facade/shared';
import {useCameraUserCapBlocked} from '@app/features/voice/hooks/useCameraUserCapBlocked';
import LocalVoiceState from '@app/features/voice/state/LocalVoiceState';
+import VoiceSettings from '@app/features/voice/state/VoiceSettings';
import {
INCOMING_CALL_ACCEPT_ACTION_DESCRIPTOR,
INCOMING_CALL_IGNORE_ACTION_DESCRIPTOR,
@@ -337,7 +338,7 @@ export const DirectCallLobbyBottomSheet = observer(function DirectCallLobbyBotto
}}
currentLatency={currentLatency}
voiceServerEndpoint={voiceServerEndpoint}
- connectionId={connectionId}
+ connectionId={VoiceSettings.showVoiceConnectionId ? connectionId : null}
audioPacketLoss={voiceStats?.audioPacketLoss}
jitter={voiceStats?.jitter}
/>
diff --git a/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyBottomSheet.tsx b/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyBottomSheet.tsx
index 843c466d6..e00c10807 100644
--- a/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyBottomSheet.tsx
+++ b/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyBottomSheet.tsx
@@ -25,6 +25,7 @@ import {VOICE_CAMERA_USER_LIMIT_REACHED_DESCRIPTOR} from '@app/features/voice/en
import {useCameraUserCapBlocked} from '@app/features/voice/hooks/useCameraUserCapBlocked';
import {usePendingVoiceConnection} from '@app/features/voice/hooks/usePendingVoiceConnection';
import LocalVoiceState from '@app/features/voice/state/LocalVoiceState';
+import VoiceSettings from '@app/features/voice/state/VoiceSettings';
import {
getVoiceDeafenedByModeratorsStatusLabel,
VOICE_DEAFEN_DESCRIPTOR,
@@ -255,7 +256,7 @@ export const VoiceLobbyBottomSheet = observer(function VoiceLobbyBottomSheet({
}}
currentLatency={currentLatency}
voiceServerEndpoint={voiceServerEndpoint}
- connectionId={connectionId}
+ connectionId={VoiceSettings.showVoiceConnectionId ? connectionId : null}
audioPacketLoss={voiceStats?.audioPacketLoss}
jitter={voiceStats?.jitter}
/>