Disable chat actions for file uploads as chats.

This commit is contained in:
levlam 2021-11-16 09:30:12 +03:00
parent a72d1c2639
commit 4c462789f1

View File

@ -31458,7 +31458,9 @@ void MessagesManager::on_send_dialog_action_timeout(DialogId dialog_id) {
if (m == nullptr) {
return;
}
if (m->forward_info != nullptr || m->had_forward_info || m->message_id.is_scheduled()) {
CHECK(m->message_id.is_yet_unsent());
if (m->forward_info != nullptr || m->had_forward_info || m->message_id.is_scheduled() ||
m->sender_dialog_id.is_valid()) {
return;
}