mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Use 9.0.0 as a marker for the direct connection experiment
This commit is contained in:
parent
7c510427af
commit
ed13fd8134
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user