Ignore business messages not from private chats.

This commit is contained in:
levlam 2024-03-18 17:17:48 +03:00
parent 7a4f77cc30
commit 4219c62ee2

View File

@ -22702,6 +22702,10 @@ td_api::object_ptr<td_api::message> MessagesManager::get_business_message_messag
} }
auto dialog_id = dialog_message.first; auto dialog_id = dialog_message.first;
if (dialog_id.get_type() != DialogType::User) {
LOG(ERROR) << "Receive a business message in " << dialog_id;
return nullptr;
}
force_create_dialog(dialog_id, "get_business_message_message_object chat", true); force_create_dialog(dialog_id, "get_business_message_message_object chat", true);
auto sender = get_message_sender_object_const(td_, m->sender_user_id, m->sender_dialog_id, auto sender = get_message_sender_object_const(td_, m->sender_user_id, m->sender_dialog_id,