Remove expected error logging.

This commit is contained in:
levlam 2023-04-03 18:00:44 +03:00
parent 241021ae83
commit c62bbfb583

View File

@ -5762,9 +5762,13 @@ tl_object_ptr<td_api::MessageContent> get_message_content_object(const MessageCo
case MessageContentType::RequestedDialog: { case MessageContentType::RequestedDialog: {
const auto *m = static_cast<const MessageRequestedDialog *>(content); const auto *m = static_cast<const MessageRequestedDialog *>(content);
if (m->dialog_id.get_type() == DialogType::User) { if (m->dialog_id.get_type() == DialogType::User) {
return make_tl_object<td_api::messageUserShared>( int64 user_id;
td->contacts_manager_->get_user_id_object(m->dialog_id.get_user_id(), "MessageRequestedDialog"), if (td->auth_manager_->is_bot()) {
m->button_id); user_id = m->dialog_id.get_user_id().get();
} else {
user_id = td->contacts_manager_->get_user_id_object(m->dialog_id.get_user_id(), "MessageRequestedDialog");
}
return make_tl_object<td_api::messageUserShared>(user_id, m->button_id);
} }
return make_tl_object<td_api::messageChatShared>(m->dialog_id.get(), m->button_id); return make_tl_object<td_api::messageChatShared>(m->dialog_id.get(), m->button_id);
} }