Handle channelDifferenceTooLong in media and feed.

This commit is contained in:
John Preston
2018-02-05 17:37:22 +03:00
parent 11671e85da
commit e102cb1469
21 changed files with 233 additions and 52 deletions
@@ -249,6 +249,15 @@ bool SparseIdsSliceBuilder::removeAll() {
return true;
}
bool SparseIdsSliceBuilder::invalidateBottom() {
_fullCount = _skippedAfter = base::none;
if (_range.till == ServerMaxMsgId) {
_range.till = _ids.empty() ? _range.from : _ids.back();
}
checkInsufficient();
return true;
}
void SparseIdsSliceBuilder::checkInsufficient() {
sliceToLimits();
}