Return back correct file_id version.

GitOrigin-RevId: 53572782a4f54512022ce8e065e546a850951302
This commit is contained in:
levlam 2020-01-16 04:56:45 +03:00
parent cf019bb59c
commit 06eb99d4d0

View File

@ -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<char>(narrow_cast<uint8>(Version::AddFolders) - 1));
// TODO return back correct version
// binary.push_back(static_cast<char>(narrow_cast<uint8>(Version::Next) - 1));
binary.push_back(static_cast<char>(narrow_cast<uint8>(Version::Next) - 1));
binary.push_back(PERSISTENT_ID_VERSION);
return base64url_encode(binary);
}