Skip to content

Commit

Permalink
Merge remote-tracking branch 'tdesktop/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKotato committed May 1, 2020
2 parents f6e89fe + 07c8aae commit 451cc00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/history/history.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_ui

0 comments on commit 451cc00

Please sign in to comment.