mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Improve msg_wait
This commit is contained in:
parent
3c466c337d
commit
48efebaec0
@ -717,8 +717,16 @@
|
||||
request.errorContext.minimalExecuteTime = MAX(request.errorContext.minimalExecuteTime, MTAbsoluteSystemTime() + 2.0);
|
||||
}
|
||||
}
|
||||
else if (rpcError.errorCode == 400 && [rpcError.errorDescription isEqualToString:@"MSG_WAIT_TIMEOUT"])
|
||||
{
|
||||
else if (
|
||||
(
|
||||
rpcError.errorCode == 400 &&
|
||||
[rpcError.errorDescription isEqualToString:@"MSG_WAIT_TIMEOUT"]
|
||||
) ||
|
||||
(
|
||||
rpcError.errorCode == 500 &&
|
||||
[rpcError.errorDescription isEqualToString:@"MSG_WAIT_FAILED"]
|
||||
)
|
||||
) {
|
||||
if (request.errorContext == nil) {
|
||||
request.errorContext = [[MTRequestErrorContext alloc] init];
|
||||
}
|
||||
|
@ -2336,9 +2336,11 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
||||
|
||||
#if DEBUG
|
||||
if text.string == "sleep" {
|
||||
messages.append(messages[0])
|
||||
messages.append(messages[0])
|
||||
messages.append(messages[0])
|
||||
messages.removeAll()
|
||||
|
||||
for i in 0 ..< 5 {
|
||||
messages.append(.message(text: "sleep\(i)", attributes: [], mediaReference: nil, replyToMessageId: nil, localGroupingKey: nil, correlationId: nil))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user