Add CHECK debug.

This commit is contained in:
levlam 2021-09-16 15:39:44 +03:00
parent 96a9fb5f66
commit 418db412c4

View File

@ -13537,6 +13537,7 @@ FullMessageId MessagesManager::on_get_message(MessageInfo &&message_info, bool f
being_readded_message_id_ = FullMessageId();
return FullMessageId();
}
old_message_id = old_message->message_id;
need_update = false;
@ -33349,7 +33350,9 @@ bool MessagesManager::update_message(Dialog *d, Message *old_message, unique_ptr
CHECK(d != nullptr);
CHECK(old_message != nullptr);
CHECK(new_message != nullptr);
CHECK(old_message->message_id == new_message->message_id);
LOG_CHECK(old_message->message_id == new_message->message_id)
<< d->dialog_id << ' ' << old_message->message_id << ' ' << new_message->message_id << ' '
<< is_message_in_dialog;
CHECK(old_message->random_y == new_message->random_y);
CHECK(need_update_dialog_pos != nullptr);