From 27fcd805e15041437b101d8e29c1c7a28594d257 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 26 Dec 2022 21:54:42 +0300 Subject: [PATCH] Remove unneeded calls to update_user/update_user_full. --- td/telegram/ContactsManager.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 1c3889d2a..19e9e3355 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -13062,15 +13062,6 @@ void ContactsManager::on_set_profile_photo(UserId user_id, tl_object_ptrusers_), "on_set_profile_photo"); add_set_profile_photo_to_cache( user_id, get_photo(td_->file_manager_.get(), std::move(photo->photo_), DialogId(user_id)), is_fallback); - - User *u = get_user(user_id); - if (u != nullptr) { - update_user(u, user_id); - } - auto *user_full = get_user_full(user_id); - if (user_full != nullptr) { - update_user_full(user_full, user_id, "on_set_profile_photo"); - } } void ContactsManager::on_delete_profile_photo(int64 profile_photo_id, Promise promise) {