Fix PhotoSizeSource::parse.

This commit is contained in:
levlam 2023-09-13 17:41:50 +03:00
parent f899fe9145
commit a0d0262394

View File

@ -190,7 +190,7 @@ void PhotoSizeSource::parse(ParserT &parser) {
if (parser.get_error() == nullptr && parser.version() >= static_cast<int32>(Version::RemovePhotoVolumeAndLocalId)) {
switch (get_type("PhotoSizeSource::parse")) {
case Type::Legacy:
case Type::FullLegacy:
case Type::StickerSetThumbnail:
parser.set_error("Invalid photo size source stored");
break;
default: