mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed interface for subscription links from mega groups.
This commit is contained in:
parent
838d5669ed
commit
0c3cabf4ac
1 changed files with 5 additions and 3 deletions
|
@ -1577,9 +1577,11 @@ object_ptr<Ui::BoxContent> EditLinkBox(
|
||||||
const auto isGroup = !peer->isBroadcast();
|
const auto isGroup = !peer->isBroadcast();
|
||||||
const auto isPublic = peer->isChannel() && peer->asChannel()->isPublic();
|
const auto isPublic = peer->isChannel() && peer->asChannel()->isPublic();
|
||||||
auto object = Box([=](not_null<Ui::GenericBox*> box) {
|
auto object = Box([=](not_null<Ui::GenericBox*> box) {
|
||||||
const auto fill = [=] {
|
const auto fill = isGroup
|
||||||
return Ui::FillCreateInviteLinkSubscriptionToggle(box, peer);
|
? Fn<Ui::InviteLinkSubscriptionToggle()>(nullptr)
|
||||||
};
|
: [=] {
|
||||||
|
return Ui::FillCreateInviteLinkSubscriptionToggle(box, peer);
|
||||||
|
};
|
||||||
if (creating) {
|
if (creating) {
|
||||||
Ui::CreateInviteLinkBox(box, fill, isGroup, isPublic, done);
|
Ui::CreateInviteLinkBox(box, fill, isGroup, isPublic, done);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue