mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Handle channelDifferenceTooLong in media and feed.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user