Add get_message_by_random_id debug.
GitOrigin-RevId: 77fe532243e1a6bb065ca25e65900852e66100a0
This commit is contained in:
parent
f87974fa0b
commit
8e1667281e
@ -24619,7 +24619,9 @@ MessageId MessagesManager::get_message_id_by_random_id(Dialog *d, int64 random_i
|
||||
if (r_value.is_ok()) {
|
||||
Message *m = on_get_message_from_database(d->dialog_id, d, r_value.ok());
|
||||
if (m != nullptr) {
|
||||
CHECK(m->random_id == random_id);
|
||||
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;
|
||||
CHECK(d->random_id_to_message_id[random_id] == m->message_id)
|
||||
<< random_id << " " << d->random_id_to_message_id[random_id] << " " << m->message_id;
|
||||
return m->message_id;
|
||||
|
Loading…
Reference in New Issue
Block a user