mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 11:34:41 +01:00
Do not unset file references
This commit is contained in:
parent
a5e18e0afd
commit
1d323a7e4b
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user