Add debug.
GitOrigin-RevId: 5fd06970cd91cf9f5211e27cf8d1d794ce79dc8f
This commit is contained in:
parent
47611d582e
commit
ccdfac6926
@ -22673,7 +22673,7 @@ void MessagesManager::attach_message_to_previous(Dialog *d, MessageId message_id
|
|||||||
CHECK(message->message_id == message_id);
|
CHECK(message->message_id == message_id);
|
||||||
CHECK(message->have_previous) << d->dialog_id << " " << message_id << " " << source;
|
CHECK(message->have_previous) << d->dialog_id << " " << message_id << " " << source;
|
||||||
--it;
|
--it;
|
||||||
CHECK(*it != nullptr);
|
CHECK(*it != nullptr) << d->dialog_id << " " << message_id << " " << source;
|
||||||
LOG(INFO) << "Attach " << message_id << " to the previous " << (*it)->message_id;
|
LOG(INFO) << "Attach " << message_id << " to the previous " << (*it)->message_id;
|
||||||
if ((*it)->have_next) {
|
if ((*it)->have_next) {
|
||||||
message->have_next = true;
|
message->have_next = true;
|
||||||
@ -22690,7 +22690,7 @@ void MessagesManager::attach_message_to_next(Dialog *d, MessageId message_id, co
|
|||||||
CHECK(message->message_id == message_id);
|
CHECK(message->message_id == message_id);
|
||||||
CHECK(message->have_next) << d->dialog_id << " " << message_id << " " << source;
|
CHECK(message->have_next) << d->dialog_id << " " << message_id << " " << source;
|
||||||
++it;
|
++it;
|
||||||
CHECK(*it != nullptr);
|
CHECK(*it != nullptr) << d->dialog_id << " " << message_id << " " << source;
|
||||||
LOG(INFO) << "Attach " << message_id << " to the next " << (*it)->message_id;
|
LOG(INFO) << "Attach " << message_id << " to the next " << (*it)->message_id;
|
||||||
if ((*it)->have_previous) {
|
if ((*it)->have_previous) {
|
||||||
message->have_previous = true;
|
message->have_previous = true;
|
||||||
|
Reference in New Issue
Block a user