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,7 +934,7 @@ public final class OngoingCallContext {
}
var directConnection: OngoingCallDirectConnection?
#if DEBUG
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 {
@ -943,9 +943,9 @@ public final class OngoingCallContext {
}
}
}
#else
} else {
directConnection = nil
#endif
}
let context = OngoingCallThreadLocalContextWebrtc(
version: version,