Add debug logging.

GitOrigin-RevId: 6f1bf40ff7388359a95f14584bc54780df67b30a
This commit is contained in:
levlam 2018-11-08 14:00:30 +03:00
parent 95ff033aae
commit a3049fa4b4

View File

@ -17711,7 +17711,8 @@ FullMessageId MessagesManager::on_send_message_success(int64 random_id, MessageI
if (date <= 0) {
LOG(ERROR) << "Receive " << new_message_id << " in " << dialog_id << " with wrong date " << date;
} else {
CHECK(sent_message->date > 0);
CHECK(sent_message->date > 0) << old_message_id << ' ' << sent_message->message_id << ' ' << sent_message->date
<< ' ' << date;
sent_message->date = date;
CHECK(d->last_message_id != old_message_id);
}