diff --git a/MTProtoKit/MTRequestMessageService.m b/MTProtoKit/MTRequestMessageService.m index 70e552c602..d764915a1a 100644 --- a/MTProtoKit/MTRequestMessageService.m +++ b/MTProtoKit/MTRequestMessageService.m @@ -553,7 +553,8 @@ [delegate requestMessageServiceAuthorizationRequired:self]; } - if ([rpcError.errorDescription rangeOfString:@"SESSION_REVOKED"].location != NSNotFound) + MTProto *mtProto = _mtProto; + if (mtProto.requiredAuthToken != nil && [rpcError.errorDescription rangeOfString:@"SESSION_REVOKED"].location != NSNotFound) { if (request.errorContext == nil) request.errorContext = [[MTRequestErrorContext alloc] init];