From a2cdc45fc042e2d60b7ff9620c3c49499f48824a Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 3 Oct 2019 17:45:11 +0300 Subject: [PATCH] Use unique file_id in UpdateProfilePhotoQuery. GitOrigin-RevId: 80840de6532ef75bd1a2447d81cf4a6ad0e08e46 --- td/telegram/ContactsManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index f63d2acfb..ba31c2150 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -4025,7 +4025,7 @@ void ContactsManager::set_profile_photo(const tl_object_ptr & CHECK(!file_view.is_encrypted()); if (file_view.has_remote_location() && !file_view.remote_location().is_web()) { td_->create_handler(std::move(promise)) - ->send(file_id, file_view.remote_location().as_input_photo()); + ->send(td_->file_manager_->dup_file_id(file_id), file_view.remote_location().as_input_photo()); return; }