From 1d323a7e4be3fc6f6ee85d0e7e7b0cc5edc08566 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 2 Sep 2020 14:00:38 +0200 Subject: [PATCH] Do not unset file references --- .../MadelineProto/MTProtoTools/ReferenceDatabase.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php b/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php index 061cd3d2..caeaeacc 100644 --- a/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php +++ b/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php @@ -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 {