Added button for invite links management even to public channels.

This commit is contained in:
23rd 2022-11-07 17:54:01 +03:00 committed by John Preston
parent 9a1d9deea5
commit 80d4c3affe

View file

@ -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(