mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Removed call button from history with deleted account.
This commit is contained in:
parent
75714cc358
commit
67cc0ef75c
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue