Force relays only if remote user is not a 'Signal Connection'.

This commit is contained in:
Jim Gustafson 2024-11-21 12:41:07 -08:00 committed by Greyson Parrelli
parent 767261152a
commit f16827d9ec
2 changed files with 3 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public class IncomingCallActionProcessor extends DeviceAwareActionProcessor {
return currentState; return currentState;
} }
boolean hideIp = !activePeer.getRecipient().isSystemContact() || callSetupState.isAlwaysTurnServers(); boolean hideIp = !activePeer.getRecipient().isProfileSharing() || callSetupState.isAlwaysTurnServers();
VideoState videoState = currentState.getVideoState(); VideoState videoState = currentState.getVideoState();
CallParticipant callParticipant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient())); CallParticipant callParticipant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient()));

View file

@ -144,6 +144,7 @@ public class OutgoingCallActionProcessor extends DeviceAwareActionProcessor {
return currentState; return currentState;
} }
boolean hideIp = !activePeer.getRecipient().isProfileSharing() || callSetupState.isAlwaysTurnServers();
VideoState videoState = currentState.getVideoState(); VideoState videoState = currentState.getVideoState();
CallParticipant callParticipant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient())); CallParticipant callParticipant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient()));
@ -157,7 +158,7 @@ public class OutgoingCallActionProcessor extends DeviceAwareActionProcessor {
callParticipant.getVideoSink(), callParticipant.getVideoSink(),
videoState.requireCamera(), videoState.requireCamera(),
callSetupState.getIceServers(), callSetupState.getIceServers(),
callSetupState.isAlwaysTurnServers(), hideIp,
NetworkUtil.getCallingDataMode(context), NetworkUtil.getCallingDataMode(context),
AUDIO_LEVELS_INTERVAL, AUDIO_LEVELS_INTERVAL,
currentState.getCallSetupState(activePeer).isEnableVideoOnCreate()); currentState.getCallSetupState(activePeer).isEnableVideoOnCreate());