From 07c8aae225e2f04600a7d5411047d30f4ca5f51c Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 May 2020 21:20:10 +0400 Subject: [PATCH] Version 2.1.1: Pin to top only new bots. --- Telegram/SourceFiles/history/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 569e53d4ea..ce51ea06ad 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2589,7 +2589,7 @@ bool History::useTopPromotion() const { } else if (const auto channel = peer->asChannel()) { return !isPinnedDialog(FilterId()) && !channel->amIn(); } else if (const auto user = peer->asUser()) { - return !isPinnedDialog(FilterId()) && user->isBot(); + return !isPinnedDialog(FilterId()) && user->isBot() && isEmpty(); } return false; }