mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
remove retryrequest from ready history to avoid congestion
This commit is contained in:
@@ -213,8 +213,10 @@ private func pushPeerReadState(network: Network, postbox: Postbox, stateManager:
|
|||||||
return .single(readState)
|
return .single(readState)
|
||||||
case let .indexBased(maxIncomingReadIndex, _, _, _):
|
case let .indexBased(maxIncomingReadIndex, _, _, _):
|
||||||
return network.request(Api.functions.messages.readEncryptedHistory(peer: inputPeer, maxDate: maxIncomingReadIndex.timestamp))
|
return network.request(Api.functions.messages.readEncryptedHistory(peer: inputPeer, maxDate: maxIncomingReadIndex.timestamp))
|
||||||
|> retryRequest
|
|> mapError { _ in
|
||||||
|> mapToSignalPromotingError { _ -> Signal<PeerReadState, PeerReadStateValidationError> in
|
return PeerReadStateValidationError.retry
|
||||||
|
}
|
||||||
|
|> mapToSignal { _ -> Signal<PeerReadState, PeerReadStateValidationError> in
|
||||||
return .single(readState)
|
return .single(readState)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user