From f571a79f1337853a3e42436eb7fb60b28b62cd99 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 24 Oct 2018 22:15:32 +0300 Subject: [PATCH] Add more debug. GitOrigin-RevId: 2c1b631964547b2b5ba9440bb41af1ae65d5b1cf --- td/telegram/MessagesManager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index b44d17471..54a037eb3 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -20851,7 +20851,12 @@ MessageId MessagesManager::get_message_id_by_random_id(Dialog *d, int64 random_i CHECK(m->random_id == random_id) << random_id << " " << m->random_id << " " << d->random_id_to_message_id[random_id] << " " << d->random_id_to_message_id[m->random_id] << " " << m->message_id << " " << source << " " - << m->from_database << " " << debug_add_message_to_dialog_fail_reason_; + << m->from_database << get_message(d, m->message_id) << " " << m << " " + << debug_add_message_to_dialog_fail_reason_; + CHECK(d->random_id_to_message_id.count(random_id)) + << source << " " << random_id << " " << m->message_id << " " << m->is_failed_to_send << " " + << m->is_outgoing << " " << m->from_database << " " << get_message(d, m->message_id) << " " << m << " " + << debug_add_message_to_dialog_fail_reason_; CHECK(d->random_id_to_message_id[random_id] == m->message_id) << source << " " << random_id << " " << d->random_id_to_message_id[random_id] << " " << m->message_id << " " << m->is_failed_to_send << " " << m->is_outgoing << " " << m->from_database << " "