Re-apply document thumb only for stickers.
This commit is contained in:
parent
6d706fd222
commit
6e0d62bb65
|
@ -2055,8 +2055,9 @@ void Session::documentApplyFields(
|
||||||
document->setMimeString(mime);
|
document->setMimeString(mime);
|
||||||
if (!thumb->isNull()
|
if (!thumb->isNull()
|
||||||
&& (document->thumb->isNull()
|
&& (document->thumb->isNull()
|
||||||
|| document->thumb->width() < thumb->width()
|
|| (document->sticker()
|
||||||
|| document->thumb->height() < thumb->height())) {
|
&& (document->thumb->width() < thumb->width()
|
||||||
|
|| document->thumb->height() < thumb->height())))) {
|
||||||
document->thumb = thumb;
|
document->thumb = thumb;
|
||||||
}
|
}
|
||||||
document->size = size;
|
document->size = size;
|
||||||
|
|
Loading…
Reference in New Issue