mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
bug fixes
This commit is contained in:
@@ -495,7 +495,7 @@ func initializedNetwork(accountId: AccountRecordId, arguments: NetworkInitializa
|
||||
let context = MTContext(serialization: serialization, encryptionProvider: arguments.encryptionProvider, apiEnvironment: apiEnvironment, isTestingEnvironment: testingEnvironment, useTempAuthKeys: useTempAuthKeys)
|
||||
|
||||
if let networkSettings = networkSettings, networkSettings.useNetworkFramework {
|
||||
if #available(iOS 12.0, *) {
|
||||
if #available(iOS 12.0, macOS 10.14, *) {
|
||||
context.makeTcpConnectionInterface = { delegate, delegateQueue in
|
||||
return NetworkFrameworkTcpConnectionInterface(delegate: delegate, delegateQueue: delegateQueue)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import Network
|
||||
import MtProtoKit
|
||||
import SwiftSignalKit
|
||||
|
||||
@available(iOS 12.0, *)
|
||||
@available(iOS 12.0, macOS 10.14, *)
|
||||
final class NetworkFrameworkTcpConnectionInterface: NSObject, MTTcpConnectionInterface {
|
||||
private final class Impl {
|
||||
private let queue: Queue
|
||||
|
||||
Reference in New Issue
Block a user