diff --git a/Telegram/SourceFiles/data/data_web_page.cpp b/Telegram/SourceFiles/data/data_web_page.cpp index 5ab3f6b2f..9f53503bb 100644 --- a/Telegram/SourceFiles/data/data_web_page.cpp +++ b/Telegram/SourceFiles/data/data_web_page.cpp @@ -382,7 +382,8 @@ bool WebPageData::computeDefaultSmallMedia() const { && description.empty() && author.isEmpty()) { return false; - } else if (!document + } else if (!uniqueGift + && !document && photo && type != WebPageType::Photo && type != WebPageType::Document diff --git a/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp b/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp index 744b3bd08..27ca9c545 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_unique_gift.cpp @@ -496,7 +496,9 @@ auto UniqueGiftBg( p.setPen(Qt::NoPen); const auto webpreview = (media.get() != view->media()); const auto thickness = webpreview ? 0 : st::chatUniqueGiftBorder * 2; - const auto radius = st::msgServiceGiftBoxRadius - thickness; + const auto radius = webpreview + ? st::roundRadiusLarge + : (st::msgServiceGiftBoxRadius - thickness); const auto full = QRect(0, 0, media->width(), media->height()); const auto inner = full.marginsRemoved( { thickness, thickness, thickness, thickness }); @@ -519,7 +521,8 @@ auto UniqueGiftBg( const auto width = media->width(); const auto shift = width / 12; const auto doubled = width + 2 * shift; - const auto outer = QRect(-shift, -shift, doubled, doubled); + const auto top = (webpreview ? 2 : 1) * (-shift); + const auto outer = QRect(-shift, top, doubled, doubled); p.setClipRect(inner); Ui::PaintPoints( p,