From b96b801b22ddfc41428c1b86f4ce83879ac773c9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Jul 2019 14:02:25 +0200 Subject: [PATCH] Disable ownership transfer to myself. --- Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp index 6ed95188f..e1b3458df 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();