2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Validate mime type of animated stickers.

This commit is contained in:
John Preston
2019-05-27 14:57:26 +02:00
parent c4aac5fa0e
commit 3577e71782
5 changed files with 61 additions and 65 deletions

View File

@@ -2446,7 +2446,6 @@ void Session::documentApplyFields(
if (!date) {
return;
}
document->setattributes(attributes);
if (dc != 0 && access != 0) {
document->setRemoteLocation(dc, access, fileReference);
}
@@ -2455,6 +2454,7 @@ void Session::documentApplyFields(
document->updateThumbnails(thumbnailInline, thumbnail);
document->size = size;
document->recountIsImage();
document->setattributes(attributes);
if (document->sticker()
&& !document->sticker()->loc.valid()
&& thumbLocation.valid()) {