Clear contains_mention/contains_unread_mention message flags for bots.

This commit is contained in:
levlam 2023-05-22 15:52:51 +03:00
parent fc82657626
commit 9756d174ee

View File

@ -23128,6 +23128,10 @@ unique_ptr<MessagesManager::Message> MessagesManager::parse_message(Dialog *d, M
} }
} }
} }
if (m->contains_mention && td_->auth_manager_->is_bot()) {
m->contains_mention = false;
m->contains_unread_mention = false;
}
if (m->history_generation > d->history_generation && m->history_generation - d->history_generation < 1000000000) { if (m->history_generation > d->history_generation && m->history_generation - d->history_generation < 1000000000) {
switch (dialog_id.get_type()) { switch (dialog_id.get_type()) {
case DialogType::Channel: case DialogType::Channel: