mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-02 14:45:25 +00:00
also compare auth type
as the authToken changes with the type this should not be necessary, but for the sake of completeness put it there.
This commit is contained in:
@@ -565,7 +565,7 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
||||
#pragma mark - Property overrides
|
||||
- (void)setAuthenticationToken:(NSString *)authenticationToken withType:(NSString*) authenticationTokenType {
|
||||
NSParameterAssert(nil == authenticationToken || nil != authenticationTokenType);
|
||||
if(![self.authenticationToken isEqualToString:authenticationToken]) {
|
||||
if(![self.authenticationToken isEqualToString:authenticationToken] || ![self.authenticationTokenType isEqualToString:authenticationTokenType]) {
|
||||
[self willChangeValueForKey:@"installationIdentification"];
|
||||
if(nil == authenticationToken) {
|
||||
[self removeKeyFromKeychain:kBITAuthenticatorAuthTokenKey];
|
||||
|
||||
Reference in New Issue
Block a user