Add AnimationsManager::after_get_difference.
GitOrigin-RevId: 922833b018cee48ff08ff98c98dc325a2d4e2d2f
This commit is contained in:
parent
3791b38296
commit
ca71a74e82
@ -701,6 +701,12 @@ string AnimationsManager::get_animation_search_text(FileId file_id) const {
|
|||||||
return animation->file_name;
|
return animation->file_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AnimationsManager::after_get_difference() {
|
||||||
|
if (td_->is_online()) {
|
||||||
|
get_saved_animations(Auto());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void AnimationsManager::get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const {
|
void AnimationsManager::get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const {
|
||||||
if (td_->auth_manager_->is_bot()) {
|
if (td_->auth_manager_->is_bot()) {
|
||||||
return;
|
return;
|
||||||
|
@ -79,6 +79,8 @@ class AnimationsManager : public Actor {
|
|||||||
|
|
||||||
string get_animation_search_text(FileId file_id) const;
|
string get_animation_search_text(FileId file_id) const;
|
||||||
|
|
||||||
|
void after_get_difference();
|
||||||
|
|
||||||
void get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const;
|
void get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -6546,9 +6546,6 @@ void MessagesManager::after_get_difference() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (td_->is_online()) {
|
if (td_->is_online()) {
|
||||||
// TODO move to AnimationsManager
|
|
||||||
td_->animations_manager_->get_saved_animations(Auto());
|
|
||||||
|
|
||||||
// TODO move to StickersManager
|
// TODO move to StickersManager
|
||||||
td_->stickers_manager_->get_installed_sticker_sets(false, Auto());
|
td_->stickers_manager_->get_installed_sticker_sets(false, Auto());
|
||||||
td_->stickers_manager_->get_installed_sticker_sets(true, Auto());
|
td_->stickers_manager_->get_installed_sticker_sets(true, Auto());
|
||||||
|
@ -1092,6 +1092,7 @@ void UpdatesManager::after_get_difference() {
|
|||||||
|
|
||||||
state_ = saved_state;
|
state_ = saved_state;
|
||||||
|
|
||||||
|
td_->animations_manager_->after_get_difference();
|
||||||
td_->inline_queries_manager_->after_get_difference();
|
td_->inline_queries_manager_->after_get_difference();
|
||||||
td_->messages_manager_->after_get_difference();
|
td_->messages_manager_->after_get_difference();
|
||||||
send_closure_later(td_->notification_manager_actor_, &NotificationManager::after_get_difference);
|
send_closure_later(td_->notification_manager_actor_, &NotificationManager::after_get_difference);
|
||||||
|
Reference in New Issue
Block a user