Fix misprints and improve logging and errors.

GitOrigin-RevId: d8a48fc5e5427a20fcfa932f928f37a58df2cdfd
This commit is contained in:
levlam 2018-09-26 18:48:14 +03:00
parent 79d8c5a97a
commit 875541b673
2 changed files with 4 additions and 4 deletions

View File

@ -665,14 +665,14 @@ void AnimationsManager::remove_saved_animation(const tl_object_ptr<td_api::Input
send_update_saved_animations();
}
td_api::object_ptr<td_api::updateSavedAnimations> AnimationsManager::get_update_saved_animatoions_object() const {
td_api::object_ptr<td_api::updateSavedAnimations> AnimationsManager::get_update_saved_animations_object() const {
return td_api::make_object<td_api::updateSavedAnimations>(
transform(saved_animation_ids_, [](FileId animation_id) { return animation_id.get(); }));
}
void AnimationsManager::send_update_saved_animations(bool from_database) {
if (are_saved_animations_loaded_) {
send_closure(G()->td(), &Td::send_update, get_update_saved_animatoions_object());
send_closure(G()->td(), &Td::send_update, get_update_saved_animations_object());
if (!from_database) {
save_saved_animations_to_database();
@ -700,7 +700,7 @@ void AnimationsManager::get_current_state(vector<td_api::object_ptr<td_api::Upda
}
if (are_saved_animations_loaded_) {
updates.push_back(get_update_saved_animatoions_object());
updates.push_back(get_update_saved_animations_object());
}
}

View File

@ -113,7 +113,7 @@ class AnimationsManager : public Actor {
void on_load_saved_animations_finished(vector<FileId> &&saved_animation_ids, bool from_database = false);
td_api::object_ptr<td_api::updateSavedAnimations> get_update_saved_animatoions_object() const;
td_api::object_ptr<td_api::updateSavedAnimations> get_update_saved_animations_object() const;
void send_update_saved_animations(bool from_database = false);