From 3c1c17ef80043fead409237c9c902d89110b3356 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 May 2020 19:59:21 +0400 Subject: [PATCH 1/2] Version 2.1.1: Remove font substitutions on Win. --- Telegram/lib_ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 124b9880d..8e568a4f1 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 124b9880d4c56c019da6bc679de9919cf6779780 +Subproject commit 8e568a4f15e2642c15ac56a69360e15464b38af2 From 07c8aae225e2f04600a7d5411047d30f4ca5f51c Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 May 2020 21:20:10 +0400 Subject: [PATCH 2/2] 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 569e53d4e..ce51ea06a 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; }