Remove unneeded td_ usages.

GitOrigin-RevId: 4cf456413228f086d7df3d21d7024baf6db1bf15
This commit is contained in:
levlam 2020-09-20 02:02:27 +03:00
parent 9ecb61965d
commit e3f5719c5c
2 changed files with 3 additions and 3 deletions

View File

@ -5942,7 +5942,7 @@ void ContactsManager::set_channel_discussion_group(DialogId dialog_id, DialogId
return promise.set_error(Status::Error(400, "Not enough rights in the channel"));
}
broadcast_input_channel = td_->contacts_manager_->get_input_channel(broadcast_channel_id);
broadcast_input_channel = get_input_channel(broadcast_channel_id);
CHECK(broadcast_input_channel != nullptr);
} else {
broadcast_input_channel = telegram_api::make_object<telegram_api::inputChannelEmpty>();
@ -5971,7 +5971,7 @@ void ContactsManager::set_channel_discussion_group(DialogId dialog_id, DialogId
return promise.set_error(Status::Error(400, "Not enough rights in the supergroup"));
}
group_input_channel = td_->contacts_manager_->get_input_channel(group_channel_id);
group_input_channel = get_input_channel(group_channel_id);
CHECK(group_input_channel != nullptr);
} else {
group_input_channel = telegram_api::make_object<telegram_api::inputChannelEmpty>();

View File

@ -4254,7 +4254,7 @@ Result<std::tuple<FileId, bool, bool, bool>> StickersManager::prepare_input_file
if (is_animated) {
int32 width = for_thumbnail ? 100 : 512;
td_->stickers_manager_->create_sticker(file_id, PhotoSize(), get_dimensions(width, width), nullptr, true, nullptr);
create_sticker(file_id, PhotoSize(), get_dimensions(width, width), nullptr, true, nullptr);
} else {
td_->documents_manager_->create_document(file_id, string(), PhotoSize(), "sticker.png", "image/png", false);
}