Skip to content

Commit

Permalink
Removed call button from history with service user.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd authored and john-preston committed Oct 4, 2023
1 parent 5ef48ca commit 2b3f17e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,9 @@ void TopBarWidget::updateControlsVisibility() {
const auto callsEnabled = [&] {
if (const auto peer = _activeChat.key.peer()) {
if (const auto user = peer->asUser()) {
return !user->isSelf() && !user->isBot();
return !user->isSelf()
&& !user->isBot()
&& !peer->isServiceUser();
}
}
return false;
Expand Down

0 comments on commit 2b3f17e

Please sign in to comment.