mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 13:38:21 +00:00
bit_appAnonID already checks for the identifierForVendor.
This commit is contained in:
parent
63882f30c0
commit
0d67c5d2cd
@ -585,13 +585,9 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
|||||||
|
|
||||||
#pragma mark - Property overrides
|
#pragma mark - Property overrides
|
||||||
|
|
||||||
|
// Return value is used to invalidate the authentication on a clean install
|
||||||
- (NSString *)installationIdentifier {
|
- (NSString *)installationIdentifier {
|
||||||
if ([self.currentDevice respondsToSelector:@selector(identifierForVendor)]) {
|
|
||||||
return self.currentDevice.identifierForVendor.UUIDString;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return bit_appAnonID();
|
return bit_appAnonID();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setAuthenticationToken:(NSString *)authenticationToken withType:(NSString*) authenticationTokenType {
|
- (void)setAuthenticationToken:(NSString *)authenticationToken withType:(NSString*) authenticationTokenType {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user