Update thumbnail type only if it exists.

This commit is contained in:
levlam 2024-03-15 23:35:16 +03:00
parent a067bec93e
commit b15bf856e2

View File

@ -335,7 +335,7 @@ void StickersManager::parse_sticker_set(StickerSet *sticker_set, ParserT &parser
if (has_thumbnail_document_id) {
parse(thumbnail_document_id, parser);
}
if (!is_mixed_format) {
if (!is_mixed_format && thumbnail.file_id.is_valid()) {
if (legacy_is_webm) {
thumbnail.type = 'v';
} else if (legacy_is_tgs) {