mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added button for invite links management even to public channels.
This commit is contained in:
parent
9a1d9deea5
commit
80d4c3affe
1 changed files with 1 additions and 10 deletions
|
@ -1189,16 +1189,7 @@ void Controller::fillManageSection() {
|
||||||
Ui::LayerOption::KeepOther);
|
Ui::LayerOption::KeepOther);
|
||||||
},
|
},
|
||||||
{ &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange });
|
{ &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange });
|
||||||
|
wrap->toggle(true, anim::type::instant);
|
||||||
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());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (canViewAdmins) {
|
if (canViewAdmins) {
|
||||||
AddButtonWithCount(
|
AddButtonWithCount(
|
||||||
|
|
Loading…
Add table
Reference in a new issue