Fix parsing old wallpaper remote.file_id.

GitOrigin-RevId: 29ed97ec9ebf31d396a849dbce36a7e710cf3026
This commit is contained in:
levlam 2019-06-27 03:13:27 +03:00
parent d5c7d0a3f9
commit 572808eb43

View File

@ -2641,7 +2641,7 @@ Result<FileId> FileManager::from_persistent_id_v23(Slice binary, FileType file_t
if (is_document_type(real_file_type) && is_document_type(file_type)) {
real_file_type = file_type;
} else if (is_background_type(real_file_type) && is_background_type(file_type)) {
real_file_type = file_type;
// type of file matches, but real type is in the stored remote location
} else if (real_file_type != file_type && file_type != FileType::Temp) {
return Status::Error(10, "Type of file mismatch");
}