mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed call button from history with service user.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user