Silence expected warning.

GitOrigin-RevId: 450c390d83f469bcf6a45111389c2fab196f8332
This commit is contained in:
levlam 2019-04-22 01:51:53 +03:00
parent a26d827a38
commit c420c82f83

View File

@ -23459,10 +23459,13 @@ bool MessagesManager::update_message(Dialog *d, unique_ptr<Message> &old_message
<< message_id << " in " << dialog_id << " has changed reply_markup from " << *old_message->reply_markup << message_id << " in " << dialog_id << " has changed reply_markup from " << *old_message->reply_markup
<< " to " << *new_message->reply_markup; << " to " << *new_message->reply_markup;
} else { } else {
LOG(ERROR) << message_id << " in " << dialog_id << " sent by " << old_message->sender_user_id // if the message is not accessible anymore, then we don't need a warning
<< " has lost reply markup " << *old_message->reply_markup if (new_message->content->get_type() != MessageContentType::ChatDeleteHistory) {
<< ". Old message: " << to_string(get_message_object(dialog_id, old_message.get())) LOG(ERROR) << message_id << " in " << dialog_id << " sent by " << old_message->sender_user_id
<< ". New message: " << to_string(get_message_object(dialog_id, new_message.get())); << " has lost reply markup " << *old_message->reply_markup
<< ". Old message: " << to_string(get_message_object(dialog_id, old_message.get()))
<< ". New message: " << to_string(get_message_object(dialog_id, new_message.get()));
}
} }
} }
} }