diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index 198b49f9cd..0df5e23a30 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -983,10 +983,7 @@ void Controller::fillManageSection() { [=] { ShowEditPermissions(_navigation, _peer); }, st::infoIconPermissions); } - if (canEditInviteLinks - && (canEditType - || !_peer->isChannel() - || !_peer->asChannel()->hasUsername())) { + if (canEditInviteLinks) { auto count = Info::Profile::MigratedOrMeValue( _peer ) | rpl::map([=](not_null peer) {