mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-24 14:31:48 +00:00
no message
This commit is contained in:
parent
54bf8761d7
commit
b081acd134
@ -336,8 +336,8 @@ func initializedNetwork(arguments: NetworkInitializationArguments, supplementary
|
|||||||
apiEnvironment.disableUpdates = supplementary
|
apiEnvironment.disableUpdates = supplementary
|
||||||
apiEnvironment = apiEnvironment.withUpdatedLangPackCode(languageCode ?? "en")
|
apiEnvironment = apiEnvironment.withUpdatedLangPackCode(languageCode ?? "en")
|
||||||
|
|
||||||
if let proxySettings = proxySettings {
|
if let activeServer = proxySettings?.activeServer {
|
||||||
apiEnvironment = apiEnvironment.withUpdatedSocksProxySettings(MTSocksProxySettings(ip: proxySettings.host, port: UInt16(proxySettings.port), username: proxySettings.username, password: proxySettings.password))
|
apiEnvironment = apiEnvironment.withUpdatedSocksProxySettings(MTSocksProxySettings(ip: activeServer.host, port: UInt16(activeServer.port), username: activeServer.username, password: activeServer.password))
|
||||||
}
|
}
|
||||||
|
|
||||||
let context = MTContext(serialization: serialization, apiEnvironment: apiEnvironment)!
|
let context = MTContext(serialization: serialization, apiEnvironment: apiEnvironment)!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user