no message

This commit is contained in:
Peter
2017-02-19 23:21:50 +03:00
parent 976bdd6940
commit 367d8a2262

View File

@@ -582,7 +582,7 @@
}
MTProto *mtProto = _mtProto;
if (mtProto.requiredAuthToken != nil && [rpcError.errorDescription rangeOfString:@"SESSION_REVOKED"].location != NSNotFound)
if (mtProto.requiredAuthToken != nil && ([rpcError.errorDescription rangeOfString:@"SESSION_REVOKED"].location != NSNotFound || [rpcError.errorDescription rangeOfString:@"AUTH_KEY_UNREGISTERED"].location != NSNotFound))
{
if (request.errorContext == nil)
request.errorContext = [[MTRequestErrorContext alloc] init];