From d2d6a6daa412cf2cb66ba87e0cca553283fe97bc Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 31 Jan 2019 15:55:39 +0300 Subject: [PATCH] Fix proxy sponsor messages search display. --- Telegram/SourceFiles/dialogs/dialogs_layout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_layout.cpp b/Telegram/SourceFiles/dialogs/dialogs_layout.cpp index fffe33f0e..2620f8c11 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_layout.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_layout.cpp @@ -241,7 +241,8 @@ void paintRow( namewidth, st::msgNameFont->height); - const auto promoted = chat.entry()->useProxyPromotion(); + const auto promoted = chat.entry()->useProxyPromotion() + && !(flags & (Flag::SearchResult | Flag::FeedSearchResult)); if (promoted) { const auto text = lang(lng_proxy_sponsor); paintRowTopRight(p, text, rectForName, active, selected);