Always cancel chat action from bots.

GitOrigin-RevId: 3da4ae8a288420202d1137cd8824764beb07fc71
This commit is contained in:
levlam 2018-04-23 01:25:07 +03:00
parent f758d592dd
commit bb1fdeacd8

View File

@ -5888,7 +5888,8 @@ void MessagesManager::on_user_dialog_action(DialogId dialog_id, UserId user_id,
return;
}
if (!need_cancel_user_dialog_action(it->action_id, message_content_id)) {
if (!td_->contacts_manager_->is_user_bot(user_id) &&
!need_cancel_user_dialog_action(it->action_id, message_content_id)) {
return;
}