Forward stories without header.

This commit is contained in:
levlam 2023-06-12 20:11:41 +03:00
parent 4b146ee33a
commit b46d311130

View File

@ -27846,7 +27846,8 @@ Result<td_api::object_ptr<td_api::message>> MessagesManager::forward_message(
unique_ptr<MessagesManager::MessageForwardInfo> MessagesManager::create_message_forward_info( unique_ptr<MessagesManager::MessageForwardInfo> MessagesManager::create_message_forward_info(
DialogId from_dialog_id, DialogId to_dialog_id, const Message *forwarded_message) const { DialogId from_dialog_id, DialogId to_dialog_id, const Message *forwarded_message) const {
auto content_type = forwarded_message->content->get_type(); auto content_type = forwarded_message->content->get_type();
if (content_type == MessageContentType::Game || content_type == MessageContentType::Audio) { if (content_type == MessageContentType::Game || content_type == MessageContentType::Audio ||
content_type == MessageContentType::Story) {
return nullptr; return nullptr;
} }