Use unique file_id in UpdateProfilePhotoQuery.

GitOrigin-RevId: 80840de6532ef75bd1a2447d81cf4a6ad0e08e46
This commit is contained in:
levlam 2019-10-03 17:45:11 +03:00
parent 64f813fffb
commit a2cdc45fc0

View File

@ -4025,7 +4025,7 @@ void ContactsManager::set_profile_photo(const tl_object_ptr<td_api::InputFile> &
CHECK(!file_view.is_encrypted());
if (file_view.has_remote_location() && !file_view.remote_location().is_web()) {
td_->create_handler<UpdateProfilePhotoQuery>(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;
}