mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Disable ownership transfer to myself.
This commit is contained in:
parent
58d4b763b6
commit
b96b801b22
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ void EditAdminBox::prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EditAdminBox::canTransferOwnership() const {
|
bool EditAdminBox::canTransferOwnership() const {
|
||||||
if (user()->isInaccessible() || user()->isBot()) {
|
if (user()->isInaccessible() || user()->isBot() || user()->isSelf()) {
|
||||||
return false;
|
return false;
|
||||||
} else if (const auto chat = peer()->asChat()) {
|
} else if (const auto chat = peer()->asChat()) {
|
||||||
return chat->amCreator();
|
return chat->amCreator();
|
||||||
|
|
Loading…
Add table
Reference in a new issue