From 6e0d62bb659fc3a1351e8c3a3f9ace4f2f46244d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 21 Jan 2019 14:34:31 +0400 Subject: [PATCH] Re-apply document thumb only for stickers. --- Telegram/SourceFiles/data/data_session.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp index b6d3f82f7a..95fc1c15e9 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -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;