Removed call button from history with service user.
This commit is contained in:
parent
5ef48cac9c
commit
2b3f17e982
|
@ -1101,7 +1101,9 @@ void TopBarWidget::updateControlsVisibility() {
|
||||||
const auto callsEnabled = [&] {
|
const auto callsEnabled = [&] {
|
||||||
if (const auto peer = _activeChat.key.peer()) {
|
if (const auto peer = _activeChat.key.peer()) {
|
||||||
if (const auto user = peer->asUser()) {
|
if (const auto user = peer->asUser()) {
|
||||||
return !user->isSelf() && !user->isBot();
|
return !user->isSelf()
|
||||||
|
&& !user->isBot()
|
||||||
|
&& !peer->isServiceUser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue