Update MessagesManager.cpp

This commit is contained in:
Andrea Cavalli 2020-12-30 12:37:21 +01:00
parent a6c0dbf160
commit 9a82abea56

View File

@ -6377,7 +6377,9 @@ void MessagesManager::add_pending_update(tl_object_ptr<telegram_api::Update> &&u
if (td_->updates_manager_->running_get_difference() || !postponed_pts_updates_.empty()) {
LOG(INFO) << "Save pending update got while running getDifference from " << source;
CHECK(update->get_id() == dummyUpdate::ID || update->get_id() == updateSentMessage::ID);
if (!(update->get_id() == dummyUpdate::ID || update->get_id() == updateSentMessage::ID)) {
return;
}
postpone_pts_update(std::move(update), new_pts, pts_count, std::move(promise));
return;
}