Fix caching of inline query results.
GitOrigin-RevId: bd547385184b9ed7aeb2e9dfd7589512d6620cc1
This commit is contained in:
parent
57816d2b5f
commit
bdd8420abd
@ -961,7 +961,12 @@ td_api::object_ptr<td_api::remoteFile> copy(const td_api::remoteFile &obj) {
|
||||
|
||||
template <>
|
||||
td_api::object_ptr<td_api::file> copy(const td_api::file &obj) {
|
||||
return td_api::make_object<td_api::file>(obj.id_, obj.size_, obj.expected_size_, copy(obj.local_), copy(obj.remote_));
|
||||
FileId file_id(obj.id_);
|
||||
if (file_id.is_valid()) {
|
||||
return G()->td().get_actor_unsafe()->file_manager_.get()->get_file_object(file_id);
|
||||
} else {
|
||||
return td_api::make_object<td_api::file>(obj.id_, obj.size_, obj.expected_size_, copy(obj.local_), copy(obj.remote_));
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
|
Loading…
Reference in New Issue
Block a user