Add AnimationsManager::after_get_difference.

GitOrigin-RevId: 922833b018cee48ff08ff98c98dc325a2d4e2d2f
This commit is contained in:
levlam 2018-12-12 05:47:20 +03:00
parent 3791b38296
commit ca71a74e82
4 changed files with 9 additions and 3 deletions

View File

@ -701,6 +701,12 @@ string AnimationsManager::get_animation_search_text(FileId file_id) const {
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 {
if (td_->auth_manager_->is_bot()) {
return;

View File

@ -79,6 +79,8 @@ class AnimationsManager : public Actor {
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;
private:

View File

@ -6546,9 +6546,6 @@ void MessagesManager::after_get_difference() {
}
if (td_->is_online()) {
// TODO move to AnimationsManager
td_->animations_manager_->get_saved_animations(Auto());
// TODO move to StickersManager
td_->stickers_manager_->get_installed_sticker_sets(false, Auto());
td_->stickers_manager_->get_installed_sticker_sets(true, Auto());

View File

@ -1092,6 +1092,7 @@ void UpdatesManager::after_get_difference() {
state_ = saved_state;
td_->animations_manager_->after_get_difference();
td_->inline_queries_manager_->after_get_difference();
td_->messages_manager_->after_get_difference();
send_closure_later(td_->notification_manager_actor_, &NotificationManager::after_get_difference);