From 06eb99d4d0a9028c27e5a7e2c2cf6fa2facae0ba Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 16 Jan 2020 04:56:45 +0300 Subject: [PATCH] Return back correct file_id version. GitOrigin-RevId: 53572782a4f54512022ce8e065e546a850951302 --- td/telegram/files/FileManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index e5a123c9..8fa627dd 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -2731,9 +2731,7 @@ string FileManager::get_persistent_id(const FullRemoteFileLocation &location) { auto binary = serialize(location_copy); binary = zero_encode(binary); - binary.push_back(static_cast(narrow_cast(Version::AddFolders) - 1)); - // TODO return back correct version - // binary.push_back(static_cast(narrow_cast(Version::Next) - 1)); + binary.push_back(static_cast(narrow_cast(Version::Next) - 1)); binary.push_back(PERSISTENT_ID_VERSION); return base64url_encode(binary); }