mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-08 05:30:47 +00:00
Better SESSION_REVOKED handling
This commit is contained in:
parent
fd51c954fb
commit
c089a42464
@ -553,7 +553,8 @@
|
|||||||
[delegate requestMessageServiceAuthorizationRequired:self];
|
[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)
|
if (request.errorContext == nil)
|
||||||
request.errorContext = [[MTRequestErrorContext alloc] init];
|
request.errorContext = [[MTRequestErrorContext alloc] init];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user