diff --git a/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp index 6ed95188f1..e1b3458df2 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp @@ -381,7 +381,7 @@ void EditAdminBox::prepare() { } bool EditAdminBox::canTransferOwnership() const { - if (user()->isInaccessible() || user()->isBot()) { + if (user()->isInaccessible() || user()->isBot() || user()->isSelf()) { return false; } else if (const auto chat = peer()->asChat()) { return chat->amCreator();