Silence expected warning.
GitOrigin-RevId: 450c390d83f469bcf6a45111389c2fab196f8332
This commit is contained in:
parent
a26d827a38
commit
c420c82f83
@ -23459,6 +23459,8 @@ 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
|
||||
<< " to " << *new_message->reply_markup;
|
||||
} else {
|
||||
// if the message is not accessible anymore, then we don't need a warning
|
||||
if (new_message->content->get_type() != MessageContentType::ChatDeleteHistory) {
|
||||
LOG(ERROR) << message_id << " in " << dialog_id << " sent by " << old_message->sender_user_id
|
||||
<< " has lost reply markup " << *old_message->reply_markup
|
||||
<< ". Old message: " << to_string(get_message_object(dialog_id, old_message.get()))
|
||||
@ -23466,6 +23468,7 @@ bool MessagesManager::update_message(Dialog *d, unique_ptr<Message> &old_message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (old_message->last_access_date < new_message->last_access_date) {
|
||||
old_message->last_access_date = new_message->last_access_date;
|
||||
|
Loading…
Reference in New Issue
Block a user