2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

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

View File

@@ -1729,7 +1729,7 @@ void ApiWrap::clearHistory(not_null<PeerData*> peer) {
Local::addSavedPeer(history->peer, ItemDateTime(last));
}
history->clear();
history->newLoaded = history->oldLoaded = true;
history->markFullyLoaded();
}
if (const auto channel = peer->asChannel()) {
if (const auto migrated = peer->migrateFrom()) {
@@ -3827,7 +3827,7 @@ void ApiWrap::readFeeds() {
i = _feedReadsDelayed.erase(i);
}
}
if (!_feedReadRequests.empty()) {
if (!_feedReadsDelayed.empty()) {
_feedReadTimer.callOnce(delay);
}
}