Use v2/calling/relays endpoint.

This commit is contained in:
adel-signal
2024-10-29 12:58:36 -07:00
committed by GitHub
parent 4220068835
commit 47300bbd56
5 changed files with 25 additions and 23 deletions

View File

@@ -1027,14 +1027,7 @@ public final class SignalCallManager implements CallManager.Observer, GroupCall.
public void retrieveTurnServers(@NonNull RemotePeer remotePeer) {
networkExecutor.execute(() -> {
try {
TurnServerInfo turnServerInfo = AppDependencies.getSignalServiceAccountManager().getTurnServerInfo();
List<TurnServerInfo> turnServerInfos = new ArrayList<>();
if (turnServerInfo != null) {
turnServerInfos.add(turnServerInfo);
turnServerInfos.addAll(turnServerInfo.getIceServers());
}
List<TurnServerInfo> turnServerInfos = AppDependencies.getSignalServiceAccountManager().getTurnServerInfo();
List<PeerConnection.IceServer> iceServers = mapToIceServers(turnServerInfos);
process((s, p) -> {
RemotePeer activePeer = s.getCallInfoState().getActivePeer();