diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 25fa70959..01b7a26fd 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -7826,21 +7826,6 @@ void MessagesManager::add_pending_channel_update(DialogId dialog_id, tl_object_p return; } - if (new_pts <= pts && new_pts >= pts - 19999) { - LOG(INFO) << "There is no need to process an update with PTS " << new_pts << " in " << dialog_id << " with PTS " - << pts; - promise.set_value(Unit()); - return; - } - - if (new_pts > pts && pts != new_pts - pts_count) { - LOG(INFO) << "Found a gap in unknown " << dialog_id << " with PTS = " << pts << ". new_pts = " << new_pts - << ", pts_count = " << pts_count << " in update from " << source; - add_postponed_channel_update(dialog_id, std::move(update), new_pts, pts_count, std::move(promise)); - get_channel_difference(dialog_id, pts, new_pts, MessageId(), true, "add_pending_channel_update 3"); - return; - } - d = add_dialog(dialog_id, "add_pending_channel_update 4"); CHECK(d != nullptr); CHECK(d->pts == pts);