Make update_message_max_reply_media_timestamp const.

This commit is contained in:
levlam 2023-06-08 20:14:38 +03:00
parent bc618b855e
commit 1886bcf850
2 changed files with 3 additions and 2 deletions

View File

@ -27068,7 +27068,7 @@ int32 MessagesManager::get_message_max_media_timestamp(const Message *m) {
}
void MessagesManager::update_message_max_reply_media_timestamp(const Dialog *d, Message *m,
bool need_send_update_message_content) {
bool need_send_update_message_content) const {
if (td_->auth_manager_->is_bot()) {
return;
}

View File

@ -2327,7 +2327,8 @@ class MessagesManager final : public Actor {
bool update_message_content(DialogId dialog_id, Message *old_message, unique_ptr<MessageContent> new_content,
bool need_merge_files, bool is_message_in_dialog, bool &is_content_changed);
void update_message_max_reply_media_timestamp(const Dialog *d, Message *m, bool need_send_update_message_content);
void update_message_max_reply_media_timestamp(const Dialog *d, Message *m,
bool need_send_update_message_content) const;
void update_message_max_own_media_timestamp(const Dialog *d, Message *m);