mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 13:13:55 +00:00
Workaround for having multiple uuid parameters in our update requests when BITAuthenticator provides an anonymous uuid
This commit is contained in:
parent
df623039a9
commit
fd70d1ec97
@ -895,6 +895,18 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setInstallationIdentificationType:(NSString *)installationIdentificationType {
|
||||
if (![_installationIdentificationType isEqualToString:installationIdentificationType]) {
|
||||
// we already use "uuid" in our requests for providing the binary UUID to the server
|
||||
// so we need to stick to "udid" even when BITAuthenticator is providing a plain uuid
|
||||
if ([installationIdentificationType isEqualToString:@"uuid"]) {
|
||||
_installationIdentificationType = @"udid";
|
||||
} else {
|
||||
_installationIdentificationType = installationIdentificationType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setInstallationIdentification:(NSString *)installationIdentification {
|
||||
if (![_installationIdentification isEqualToString:installationIdentification]) {
|
||||
if (installationIdentification) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user