From 53ed453f0b700ad8460fb981e9932b814bfdb9f0 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 6 Jan 2021 21:15:50 +0100 Subject: [PATCH] Revert CHECK --- td/telegram/MessagesManager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index fcd4d5689..3cb1efd21 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -6381,10 +6381,7 @@ void MessagesManager::add_pending_update(tl_object_ptr &&u if (td_->updates_manager_->running_get_difference() || !postponed_pts_updates_.empty()) { VLOG(messages) << "Save pending update got while running getDifference from " << source; if (td_->updates_manager_->running_get_difference()) { - if (!(update->get_id() == dummyUpdate::ID || update->get_id() == updateSentMessage::ID)) { - LOG(ERROR) << "Failed CHECK(update->get_id() == dummyUpdate::ID || update->get_id() == updateSentMessage::ID). Postponed pts size: " << postponed_pts_updates_.size(); - return; - } + CHECK(update->get_id() == dummyUpdate::ID || update->get_id() == updateSentMessage::ID); } postpone_pts_update(std::move(update), new_pts, pts_count, std::move(promise)); return;