mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Version 2.1.1: Pin to top only new bots.
This commit is contained in:
parent
3c1c17ef80
commit
07c8aae225
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue