2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Version 2.1.1: Pin to top only new bots.

This commit is contained in:
John Preston
2020-05-01 21:20:10 +04:00
parent 3c1c17ef80
commit 07c8aae225

View File

@@ -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;
}