Fix caching of inline query results.

GitOrigin-RevId: bd547385184b9ed7aeb2e9dfd7589512d6620cc1
This commit is contained in:
levlam 2018-01-16 22:16:53 +03:00
parent 57816d2b5f
commit bdd8420abd

View File

@ -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) {
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 <>