Remove Td::on_channel_unban_timeout proxy.
This commit is contained in:
parent
138535ccf8
commit
411d30e1c7
@ -3507,11 +3507,20 @@ void ContactsManager::on_user_online_timeout(UserId user_id) {
|
||||
}
|
||||
|
||||
void ContactsManager::on_channel_unban_timeout_callback(void *contacts_manager_ptr, int64 channel_id_long) {
|
||||
auto td = static_cast<ContactsManager *>(contacts_manager_ptr)->td_;
|
||||
send_closure_later(td->actor_id(td), &Td::on_channel_unban_timeout, channel_id_long);
|
||||
if (G()->close_flag()) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto contacts_manager = static_cast<ContactsManager *>(contacts_manager_ptr);
|
||||
send_closure_later(contacts_manager->actor_id(contacts_manager), &ContactsManager::on_channel_unban_timeout,
|
||||
ChannelId(narrow_cast<int32>(channel_id_long)));
|
||||
}
|
||||
|
||||
void ContactsManager::on_channel_unban_timeout(ChannelId channel_id) {
|
||||
if (G()->close_flag()) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto c = get_channel(channel_id);
|
||||
CHECK(c != nullptr);
|
||||
|
||||
|
@ -284,8 +284,6 @@ class ContactsManager : public Actor {
|
||||
|
||||
void invalidate_user_full(UserId user_id);
|
||||
|
||||
void on_channel_unban_timeout(ChannelId channel_id);
|
||||
|
||||
void check_dialog_username(DialogId dialog_id, const string &username, Promise<CheckDialogUsernameResult> &&promise);
|
||||
|
||||
static td_api::object_ptr<td_api::CheckChatUsernameResult> get_check_chat_username_result_object(
|
||||
@ -1554,6 +1552,8 @@ class ContactsManager : public Actor {
|
||||
|
||||
void on_user_online_timeout(UserId user_id);
|
||||
|
||||
void on_channel_unban_timeout(ChannelId channel_id);
|
||||
|
||||
void on_user_nearby_timeout(UserId user_id);
|
||||
|
||||
void on_slow_mode_delay_timeout(ChannelId channel_id);
|
||||
|
@ -3186,13 +3186,6 @@ void Td::schedule_get_promo_data(int32 expires_in) {
|
||||
}
|
||||
}
|
||||
|
||||
void Td::on_channel_unban_timeout(int64 channel_id_long) {
|
||||
if (close_flag_ >= 2) {
|
||||
return;
|
||||
}
|
||||
contacts_manager_->on_channel_unban_timeout(ChannelId(narrow_cast<int32>(channel_id_long)));
|
||||
}
|
||||
|
||||
bool Td::is_online() const {
|
||||
return is_online_;
|
||||
}
|
||||
|
@ -121,8 +121,6 @@ class Td final : public NetQueryCallback {
|
||||
void on_online_updated(bool force, bool send_update);
|
||||
void on_update_status_success(bool is_online);
|
||||
|
||||
void on_channel_unban_timeout(int64 channel_id_long);
|
||||
|
||||
bool is_online() const;
|
||||
|
||||
void set_is_bot_online(bool is_bot_online);
|
||||
|
Loading…
Reference in New Issue
Block a user