Re-apply document thumb only for stickers.

This commit is contained in:
John Preston 2019-01-21 14:34:31 +04:00
parent 6d706fd222
commit 6e0d62bb65
1 changed files with 3 additions and 2 deletions

View File

@ -2055,8 +2055,9 @@ void Session::documentApplyFields(
document->setMimeString(mime);
if (!thumb->isNull()
&& (document->thumb->isNull()
|| document->thumb->width() < thumb->width()
|| document->thumb->height() < thumb->height())) {
|| (document->sticker()
&& (document->thumb->width() < thumb->width()
|| document->thumb->height() < thumb->height())))) {
document->thumb = thumb;
}
document->size = size;