From 66e7f1d490a33bd7280afb58e6b1cc4b2e584be6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Apr 2023 23:05:54 +0400 Subject: [PATCH] Fix dimming edition for new wallpapers. --- Telegram/SourceFiles/boxes/background_preview_box.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/background_preview_box.cpp b/Telegram/SourceFiles/boxes/background_preview_box.cpp index c0f53e255..3573a261e 100644 --- a/Telegram/SourceFiles/boxes/background_preview_box.cpp +++ b/Telegram/SourceFiles/boxes/background_preview_box.cpp @@ -199,7 +199,9 @@ BackgroundPreviewBox::BackgroundPreviewBox( , _appNightMode(Window::Theme::IsNightModeValue()) , _boxDarkMode(_appNightMode.current()) , _dimmingIntensity(std::clamp(paper.patternIntensity(), 0, 100)) -, _dimmed(_forPeer && paper.document() && !paper.isPattern()) { +, _dimmed(_forPeer + && (paper.document() || paper.localThumbnail()) + && !paper.isPattern()) { if (_media) { _media->thumbnailWanted(_paper.fileOrigin()); }