mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed call button from history with deleted account.
This commit is contained in:
@@ -1179,6 +1179,7 @@ void TopBarWidget::updateControlsVisibility() {
|
||||
if (const auto user = peer->asUser()) {
|
||||
return !user->isSelf()
|
||||
&& !user->isBot()
|
||||
&& !user->isInaccessible()
|
||||
&& !peer->isServiceUser();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -498,7 +498,7 @@ void WrapWidget::addProfileCallsButton() {
|
||||
|
||||
const auto peer = key().peer();
|
||||
const auto user = peer ? peer->asUser() : nullptr;
|
||||
if (!user || user->sharedMediaInfo()) {
|
||||
if (!user || user->sharedMediaInfo() || user->isInaccessible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user