mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Call debugging
This commit is contained in:
parent
d26544fec2
commit
d2fac5fc3f
@ -958,9 +958,20 @@ public final class OngoingCallContext {
|
||||
directConnection = nil
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
//var customParameters = customParameters
|
||||
//customParameters["v9_reflector_shortcircuit"] = true as NSNumber
|
||||
#if DEBUG && false
|
||||
var customParameters = customParameters
|
||||
if let initialCustomParameters = try? JSONSerialization.jsonObject(with: (customParameters ?? "{}").data(using: .utf8)!) as? [String: Any] {
|
||||
var customParametersValue: [String: Any]
|
||||
customParametersValue = initialCustomParameters
|
||||
customParametersValue["network_standalone_reflectors"] = true as NSNumber
|
||||
customParametersValue["network_use_mtproto"] = true as NSNumber
|
||||
customParametersValue["network_skip_initial_ping"] = true as NSNumber
|
||||
customParameters = String(data: try! JSONSerialization.data(withJSONObject: customParametersValue), encoding: .utf8)!
|
||||
|
||||
if let reflector = filteredConnections.first(where: { $0.username == "reflector" && $0.reflectorId == 1 }) {
|
||||
filteredConnections = [reflector]
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
let context = OngoingCallThreadLocalContextWebrtc(
|
||||
|
Loading…
x
Reference in New Issue
Block a user