From 80d4c3affedd351e1f75426ef8ae6f146a37c800 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 7 Nov 2022 17:54:01 +0300 Subject: [PATCH] Added button for invite links management even to public channels. --- .../SourceFiles/boxes/peers/edit_peer_info_box.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index 1690f8a3b..add63faa7 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -1189,16 +1189,7 @@ void Controller::fillManageSection() { Ui::LayerOption::KeepOther); }, { &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange }); - - if (_typeDataSavedValue) { - _privacyTypeUpdates.events_starting_with_copy( - _typeDataSavedValue->privacy - ) | rpl::start_with_next([=](Privacy flag) { - wrap->toggle( - flag != Privacy::HasUsername, - anim::type::instant); - }, wrap->lifetime()); - } + wrap->toggle(true, anim::type::instant); } if (canViewAdmins) { AddButtonWithCount(