Do not unset file references

This commit is contained in:
Daniil Gentili 2020-09-02 14:00:38 +02:00
parent a5e18e0afd
commit 1d323a7e4b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -35,8 +35,6 @@ class ReferenceDatabase implements TLCallback
const PHOTO_LOCATION = 1;
// Reference from a photo location (can only be photo location)
const PHOTO_LOCATION_LOCATION = 2;
// DEPRECATED: Reference from a location (can only be document location)
const DOCUMENT_LOCATION_LOCATION = 0;
// Peer + photo ID
const USER_PHOTO_ORIGIN = 0;
// Peer (default photo ID)
@ -91,12 +89,6 @@ class ReferenceDatabase implements TLCallback
}
public function init()
{
foreach ($this->db as $key => $value) {
if ($key[0] === "0") {
// Unsetting deprecated DOCUMENT_LOCATION_LOCATION
unset($this->db[$key]);
}
}
}
public function getMethodCallbacks(): array
{