Fix parsing of PhotoSizeSource::FullLegacy.

This commit is contained in:
levlam 2021-08-07 08:46:56 +03:00
parent 5a8f8fbe82
commit 6c3294684c
1 changed files with 1 additions and 3 deletions

View File

@ -109,9 +109,7 @@ void parse(PhotoSizeSource::FullLegacy &source, ParserT &parser) {
parse(source.volume_id, parser);
parse(source.secret, parser);
parse(source.local_id, parser);
if (source.local_id < 0) {
parser.set_error("Wrong local_id");
}
// source.local_id can be negative in secret chat thumbnails
}
template <class StorerT>