mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Disable ownership transfer to myself.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user