Use unique file_id in UpdateProfilePhotoQuery.
GitOrigin-RevId: 80840de6532ef75bd1a2447d81cf4a6ad0e08e46
This commit is contained in:
parent
64f813fffb
commit
a2cdc45fc0
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user