Do not update forward count when receive discussion message.

GitOrigin-RevId: de9dc38e8a8bb3747d4c955c46ddaf374b408959
This commit is contained in:
levlam 2020-09-15 02:00:28 +03:00
parent e32ce60f38
commit eeac13ce8d

View File

@ -29817,7 +29817,7 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
}
}
}
if (!td_->auth_manager_->is_bot() && from_update && m->forward_info != nullptr &&
if (!td_->auth_manager_->is_bot() && from_update && m->forward_info != nullptr && m->sender_user_id.is_valid() &&
m->forward_info->sender_dialog_id.is_valid() && m->forward_info->message_id.is_valid()) {
update_forward_count(m->forward_info->sender_dialog_id, m->forward_info->message_id);
}