Use 9.0.0 as a marker for the direct connection experiment

This commit is contained in:
Ali 2023-04-12 22:06:24 +04:00
parent 7c510427af
commit ed13fd8134

View File

@ -934,18 +934,18 @@ public final class OngoingCallContext {
}
var directConnection: OngoingCallDirectConnection?
#if DEBUG
if #available(iOS 12.0, *) {
for connection in filteredConnections {
if connection.username == "reflector" && connection.reflectorId == 1 && !connection.hasTcp && connection.hasTurn {
directConnection = CallDirectConnectionImpl(host: connection.ip, port: Int(connection.port), peerTag: dataWithHexString(connection.password))
break
if version == "9.0.0" {
if #available(iOS 12.0, *) {
for connection in filteredConnections {
if connection.username == "reflector" && connection.reflectorId == 1 && !connection.hasTcp && connection.hasTurn {
directConnection = CallDirectConnectionImpl(host: connection.ip, port: Int(connection.port), peerTag: dataWithHexString(connection.password))
break
}
}
}
} else {
directConnection = nil
}
#else
directConnection = nil
#endif
let context = OngoingCallThreadLocalContextWebrtc(
version: version,