Temporarily fix file_id version.

GitOrigin-RevId: bb97188814e9eda25287b6127d0991b8157726ba
This commit is contained in:
levlam 2019-10-24 21:44:57 +03:00
parent aa752468fc
commit d5ba35e2f0

View File

@ -2678,7 +2678,9 @@ 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::Next) - 1));
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(PERSISTENT_ID_VERSION);
return base64url_encode(binary);
}