mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Force relays only if remote user is not a 'Signal Connection'.
This commit is contained in:
committed by
Greyson Parrelli
parent
767261152a
commit
f16827d9ec
@@ -94,7 +94,7 @@ public class IncomingCallActionProcessor extends DeviceAwareActionProcessor {
|
||||
return currentState;
|
||||
}
|
||||
|
||||
boolean hideIp = !activePeer.getRecipient().isSystemContact() || callSetupState.isAlwaysTurnServers();
|
||||
boolean hideIp = !activePeer.getRecipient().isProfileSharing() || callSetupState.isAlwaysTurnServers();
|
||||
VideoState videoState = currentState.getVideoState();
|
||||
CallParticipant callParticipant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient()));
|
||||
|
||||
|
||||
@@ -144,6 +144,7 @@ public class OutgoingCallActionProcessor extends DeviceAwareActionProcessor {
|
||||
return currentState;
|
||||
}
|
||||
|
||||
boolean hideIp = !activePeer.getRecipient().isProfileSharing() || callSetupState.isAlwaysTurnServers();
|
||||
VideoState videoState = currentState.getVideoState();
|
||||
CallParticipant callParticipant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient()));
|
||||
|
||||
@@ -157,7 +158,7 @@ public class OutgoingCallActionProcessor extends DeviceAwareActionProcessor {
|
||||
callParticipant.getVideoSink(),
|
||||
videoState.requireCamera(),
|
||||
callSetupState.getIceServers(),
|
||||
callSetupState.isAlwaysTurnServers(),
|
||||
hideIp,
|
||||
NetworkUtil.getCallingDataMode(context),
|
||||
AUDIO_LEVELS_INTERVAL,
|
||||
currentState.getCallSetupState(activePeer).isEnableVideoOnCreate());
|
||||
|
||||
Reference in New Issue
Block a user