diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index bb511a27..7e344264 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -13643,7 +13643,14 @@ void MessagesManager::get_message_force_from_server(Dialog *d, MessageId message // so we try to force channel difference first // replied message can't be older than already added original message, but pinned message can be - CHECK(input_message == nullptr || input_message->get_id() == telegram_api::inputMessagePinned::ID); + LOG_CHECK(input_message == nullptr || input_message->get_id() == telegram_api::inputMessagePinned::ID) + << to_string(input_message) << " " << d->dialog_id << " " << message_id << " " << d->last_new_message_id + << " " << d->last_message_id << " " << d->first_database_message_id << " " << d->last_database_message_id + << " " << d->pinned_message_id << " " << d->last_read_all_mentions_message_id << " " + << d->max_unavailable_message_id << " " << d->last_clear_history_message_id << " " << d->order << " " + << d->deleted_last_message_id << " " << d->max_added_message_id << " " << d->pts << " " + << d->last_assigned_message_id << " " << d->debug_last_new_message_id << " " + << d->debug_first_database_message_id << " " << d->debug_last_database_message_id; postponed_get_message_requests_[d->dialog_id].emplace_back(message_id, std::move(promise), std::move(input_message)); get_channel_difference(d->dialog_id, d->pts, true, "get_message"); diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 556bc648..4c309c4c 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -1192,7 +1192,7 @@ class MessagesManager : public Actor { const char *debug_set_dialog_last_database_message_id = "Unknown"; // to be removed soon vector debug_message_op; - // message identifiers loaded from database, to be removed soon + // message identifiers loaded from database MessageId debug_last_new_message_id; MessageId debug_first_database_message_id; MessageId debug_last_database_message_id;