Improve replies for bots.

This commit is contained in:
levlam 2023-05-06 21:47:10 +03:00
parent 7eb512a0b2
commit a05c86d6ec

View File

@ -24576,10 +24576,9 @@ void MessagesManager::fix_server_reply_to_message_id(DialogId dialog_id, Message
return; return;
} }
if (!message_id.is_scheduled() && !reply_in_dialog_id.is_valid() && reply_to_message_id >= message_id) { if (!message_id.is_scheduled() && !reply_in_dialog_id.is_valid() &&
if (!has_qts_messages(dialog_id)) { ((reply_to_message_id > message_id && !has_qts_messages(dialog_id)) || reply_to_message_id == message_id)) {
LOG(ERROR) << "Receive reply to wrong " << reply_to_message_id << " in " << message_id << " in " << dialog_id; LOG(ERROR) << "Receive reply to wrong " << reply_to_message_id << " in " << message_id << " in " << dialog_id;
}
reply_to_message_id = MessageId(); reply_to_message_id = MessageId();
} }
} }