mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-21 03:29:54 +00:00
copy mtapienvironment
This commit is contained in:
@@ -373,6 +373,22 @@ typedef enum {
|
||||
return result;
|
||||
}
|
||||
|
||||
-(id)copy {
|
||||
MTApiEnvironment *result = [[MTApiEnvironment alloc] init];
|
||||
result.apiId = self.apiId;
|
||||
result.appVersion = self.appVersion;
|
||||
result.layer = self.layer;
|
||||
result.langPack = self.langPack;
|
||||
result->_langPackCode = self.langPackCode;
|
||||
result.disableUpdates = self.disableUpdates;
|
||||
result.tcpPayloadPrefix = self.tcpPayloadPrefix;
|
||||
result.datacenterAddressOverrides = self.datacenterAddressOverrides;
|
||||
result->_socksProxySettings = self.socksProxySettings;
|
||||
[result _updateApiInitializationHash];
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
- (MTApiEnvironment *)withUpdatedSocksProxySettings:(MTSocksProxySettings *)socksProxySettings {
|
||||
MTApiEnvironment *result = [[MTApiEnvironment alloc] init];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user